AttributeError: module 'pymysql' has no attribute 'escape_string' 臭大佬 2021-03-30 00:01:00 9268 Python 简介 AttributeError: module 'pymysql' has no attribute 'escape_string' 问题 AttributeError: module ‘pymysql’ has no attribute ‘escape_string’ 代码# coding:utf-8 import pymysql # .... s = r'sss' ss = pymysql.escape_string(s) 解决# coding:utf-8 import pymysql from pymysql.converters import escape_string # .... s = r'sss' ss = escape_string(s) 赏 上一篇: 制作一个简易的exe包 下一篇: mysql读写分离 发表 {{ comment.user_name }} {{ comment.created_at }} {{ comment.content }} 取消 发表 {{ child.user_name }} {{ child.created_at }} @ {{ child.answered_user_name }}:{{ child.content }} 取消 发表 更多 广告栏 热度榜 标签云 微信公众号 最新内容会在公众号首发哟☄⊙ω⊙)☄