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')

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

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