Python链接MySQL时,报错TypeError an integer is required

今天,使用Python链接MySQL时,结果报错 TypeError: connect() argument 3 must be string, not int 发现是因为本身写的数据是int类型,因此我把全部内容都改成string类型,结果又报错TypeError: an integer is required 查看数据库配置后发现port不该该用双引号引发来,因此按照下面配置再运行就正常了 w
相关文章
相关标签/搜索