One - One Code All

Blog Content

python pymysql转义方法escape_string使用说明及报错解决方法

Python   2021-04-17 18:00:41


pymysql中有专门的转义方法,导入语法如下:


# v1.0.0及以上

from pymysql.converters import escape_string


# v0.10.1及以下

from pymysql import escape_string



上一篇:mac卸载python3.7
下一篇:centos升级安装python3.9

The minute you think of giving up, think of the reason why you held on so long.