cx = sqlite3.connect("c:/数据库地址")  # 打开数据库
cu = cx.cursor()
# query the table
rows = cu.execute("select * from user")
# print the table
for row in rows:
print(row)
cx.commit() # 提交
cx.close() # 关闭
05-11 22:28