0
点赞
收藏
分享

微信扫一扫

TypeError: __init__() takes 1 positional argument but 5 were given


TypeError: __init__() takes 1 positional argument but 5 were given_解决方案

以下为解决方案:

TypeError: __init__() takes 1 positional argument but 5 were given_python_02

dbhost='localhost'
dbuser='root'
dbpass='123456'
dbname='mrsoft'

db=pymysql.connect(host=dbhost,user=dbuser,password=dbpass,database=dbname)



举报

相关推荐

0 条评论