win7下python3.5连接mysql
时间:2021-07-01 10:21:17
帮助过:19人阅读
pymysql
>>> conn=pymysql.connect(
‘localhost‘,
‘root‘,
‘‘,
‘guest‘)
>>> cor=
conn.cursor()
>>> cor.execute(
‘select * from nsds‘)
2
>>> rows=
cor.fetchall()
>>>
for d
in rows:
print(d)
(1,
‘z‘)
win7下python3.5连接mysql
标签:查看 python win install pip from 运行 使用 local