一 import pymysql conn=pymysql.connect( host='localhost', port=3306, user='zuo', password=', database='day46', charset='utf8', ) name=input('name:') pwd=input('pwd:') # cur=conn.cursor() #获取游标 执行完毕返回的结果集默认以元组显示 cur=conn.cursor(cursor=pymysql.cursors.D…