摘要:
导入模块 import pymysql conn = pymysql.connect( user = "root", db = "day36", host = "127.0.0.1", post = 3306, charset = "utf8" autocommit = True #自动提交确认 ) 阅读全文
摘要:
导入模块 import pymysql 连接(看一下password有没有,没有的话会怎么样,有很多参数,有些参数也是可以不传的) conn = pymysql.connect(user = "root",host = "127.0.0.1",port = 3306,charset = "utf8" 阅读全文