首页 > 代码库 > python与mysql交互

python与mysql交互

con = MySQLdb.connect(host="localhost(host=‘localhost‘.user=‘root‘,password=

dfb = 

cur = c.cursor

cur.excute("show tables;)

cur.close

c.close

 

python与mysql交互