2020
09-24
09-24
python数据库编程 ODBC方式实现通讯录
Python数据库编程,ODBC方式实现通讯录,供大家参考,具体内容如下#-*-coding:utf-8-*-importpyodbcimportosdefSelectInfo(hcon,hcur):hcur.execute('select*fromPassMapT')ptitle=('ID','Item','Pwd','other')print(ptitle)result=hcur.fetchall()foriteminresult:print(item)print('')defAddInfo(hcon,hcur):id=int(input('pleaseinputID:'))item=str(input('pleaseinputItem:'))pwd=str(input('plea...
继续阅读 >