摘要:
import pymysql# username = input('请输入用户名:')# pwd = input('请输入密码:')# 1.连接conn = pymysql.connect(host='localhost', port=3306, user='root', password='zx360828htc', db='test', charset='utf8')# 2.创建游标curso... 阅读全文
摘要:
import pymysql conn = pymysql.connect( user='root', password='zx360828htc', host='localhost', port=3306, charset='utf8', database='test' ) cursor = co 阅读全文
摘要:
import pymysql conn = pymysql.connect( user='root', password='zx360828htc', host='localhost', port=3306, charset='utf8', database='test' ) cursor = co 阅读全文
摘要:
import pymysql 与数据库端建立连接 conn = pymysql.connect(host='localhost', user='root', password='zx360828htc', database='test') 产生一个游标对象 cursor = conn.cursor( 阅读全文