文件名称:python mysql数据库连接
文件大小:660B
文件格式:PY
更新时间:2021-03-22 11:19:10
python msql
import mysql.connector as con # 获取游标 def connect_db(dbname,username,password): cons = con.connect(user = username, password = password, database = dbname) return cons
文件名称:python mysql数据库连接
文件大小:660B
文件格式:PY
更新时间:2021-03-22 11:19:10
python msql
import mysql.connector as con # 获取游标 def connect_db(dbname,username,password): cons = con.connect(user = username, password = password, database = dbname) return cons