import os,time
from sqlite3 import *
#from sqlalchemy import *
conn = connect('c://1.db3') #连接数据库
curs = conn.cursor() #创建游标
#插入数据
#for k in range(4085,5000):
# curs.execute("insert into city values (%s,'kkk','pse','hubei',2000)"%k)
conn.commit() #刷新
curs.execute("select * from city ") #查询limit 100
a=time.time()
for row in curs:
print (row[0],"===>",row[1])
if row[0] == "":
break
b=time.time()
print('用时(秒):',b-a)
curs.close() #关闭游标
conn.close() #关闭连接
#os.system("mstsc")
#while True:
#
print("123456789")