# 连接数据库
con = pymysql.connect(host="localhost", port=3306, user="xxx", password="xxxxxx", database="xxx", charset="utf8")
cur = con.cursor()
cur.execute("show tables;")
res = cur.fetchall()
for table in res:
print(table)
posted on
2023-12-10 22:07时间完全不够用啊
阅读(20)
评论(0)
收藏举报