2018-12-21

2019-03-07  本文已影响0人  江湖有爱

Python连接数据库
db = pymysql.connect(host = '127.0.0.1',port = 3306,db='db',user = 'root',passwd = 'root',charset = 'utf8')

image.png

cursor = db.cursor()
cursor.execute('select * from imge

image.png
上一篇 下一篇

猜你喜欢

热点阅读