时间:2021-07-01 10:21:17 帮助过:10人阅读
db = pymysql.connect(host="localhost", port=3306, user="root", passwd="xxx", db="stu_info")
cursor = db.cursor(cursor=pymysql.cursors.DictCursor)
cursor.execute("SELECT account,psw FROM account Where ")
data = cursor.fetchall()
db.close()
pymysql使用模板
标签:where port sql host HERE sel mysq info nec