Python 代码库之读取sqlite数据库(含源码)
import sqlite3
fname='ZDic'
dbname=fname+'.db'
conn = sqlite3.connect(dbname)
cursor =conn.execute("SELECT * from mword limit 1000,10")
wlist=[]
for it in cursor:
wlist.append(it)
conn.close()
Python 代码库之读取sqlite数据库(含源码)
import sqlite3
fname='ZDic'
dbname=fname+'.db'
conn = sqlite3.connect(dbname)
cursor =conn.execute("SELECT * from mword limit 1000,10")
wlist=[]
for it in cursor:
wlist.append(it)
conn.close()
本文标题:Python 代码库之读取sqlite数据库(支持分页含源码)
本文链接:https://www.haomeiwen.com/subject/xaswrctx.html
网友评论