标签:解决方法 nbsp span host argument mysql连接 osi mys base
pymysql连接报错:
_init__() takes 1 positional argument but 5 positional arguments (and 1 keyword-only argument) were given
解决方法:
连接方法加属性名称,例
pymysql.connect("localhost", "root", "password", "database",charset="utf8")
改为
pymysql.connect(host="localhost", user="root", password="password", database="database",charset="utf8")
标签:解决方法 nbsp span host argument mysql连接 osi mys base
原文地址:https://www.cnblogs.com/Arisf/p/14877071.html