python Mysql使用

import pymysql with pymysql.connect("localhost","root","pwd","dbName") as db: db.execute("show tables") data = db.fetchall(); print(data)
相關文章
相關標籤/搜索