当前位置: 首页 > 后端技术 > Python

pymysqlerrortakes1positionalargumentbut2weregiven

时间:2023-03-25 20:44:51 Python

TypeError:__init__()takes1positionalargumentbut2weregiven错误原因是新版本的代码被改了,端口主机的密码必须使用关键字参数而不是位置参数