客户数据库:Tel No, Name, PostCode, Address
我想在Tkinder列表中仅显示电话号码和地址
我有以下代码:
def read_customerData():
connCustomer = sqlite3.connect('customerData.db')
cCustomer = connCustomer.cursor()
cCustomer.execute('SELECT * FROM customerData')
for row in cCustomer.fetchall()
listBoxCus.insert(tk.END, row[0], row[3])
但它显示:
Tel No
Address
Tel No
Address
.
.
.
而不是:
Tel No Address
Tel No Address
.
.
我尝试row[0] + row[3]
,但显示出一些错误。