版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Zzhouzhou237/article/details/84232630
import sqlite3
if __name__ =='__main__':
cx = sqlite3.connect("C:/Users/503061752/Desktop/AutoTest.sdb")
cu = cx.cursor()
cu.execute("select * from waiting_time")
res = cu.fetchall()
for curres in res:
print(curres)
以上代码实现的功能是读取数据库中的内容,并逐条输出