sqlite3 查询表
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() # 关闭
若标题中有“转载”字样,则本文版权归原作者所有。若无转载字样,本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利.