摘要: import pymysql# username = input('请输入用户名:')# pwd = input('请输入密码:')# 1.连接conn = pymysql.connect(host='localhost', port=3306, user='root', password='zx360828htc', db='test', charset='utf8')# 2.创建游标curso... 阅读全文
posted @ 2020-09-24 23:00 HackerEarl 阅读(201) 评论(0) 推荐(0) 编辑
摘要: import pymysql conn = pymysql.connect( user='root', password='zx360828htc', host='localhost', port=3306, charset='utf8', database='test' ) cursor = co 阅读全文
posted @ 2020-09-24 22:05 HackerEarl 阅读(1151) 评论(0) 推荐(0) 编辑
摘要: import pymysql conn = pymysql.connect( user='root', password='zx360828htc', host='localhost', port=3306, charset='utf8', database='test' ) cursor = co 阅读全文
posted @ 2020-09-24 21:59 HackerEarl 阅读(260) 评论(0) 推荐(0) 编辑
摘要: import pymysql 与数据库端建立连接 conn = pymysql.connect(host='localhost', user='root', password='zx360828htc', database='test') 产生一个游标对象 cursor = conn.cursor( 阅读全文
posted @ 2020-09-24 20:25 HackerEarl 阅读(108) 评论(0) 推荐(0) 编辑