欢迎光临散文网 会员登陆 & 注册

module 'pymysql' has no attribute 'escape_string'

2023-04-18 01:21 作者:青阳小栈  | 我要投稿

错误信息

module 'pymysql' has no attribute 'escape_string'

解决方法

pymysql.escape_string() 修改为 pymysql.converters.escape_string()

原因

pymysql更新到了1.0版本。


module 'pymysql' has no attribute 'escape_string'的评论 (共 条)

分享到微博请遵守国家法律