pymysql excape_string报错

2021年2月16日 2938点热度 0人点赞 0条评论

错误信息

module 'pymysql' has no attribute 'escape_string'

解决方法

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

原因

pymysql更新到了1.0版本。

KAMINO

这个人很懒,什么都没留下

文章评论