python【系列教程】之数据库编程

1、python数据库API简介       2、操做SQLite数据库 import sqlite3 # 获取数据库链接 conn = sqlite3.connect('first.db') # 获取游标 c = conn.cursor() # 执行查询语句 c.execute('select * from user_tb where _id>?', (2,)) print('查询返回的记录
相关文章
相关标签/搜索