PyMySQL TypeError: not enough arguments for format string

 

主要是在Python的function中写了执行SQL的语句,SQL条件中需要类似'%_aa'%的匹配符号,Python认为%是求模运算或者格式化字符,而是实际我们在SQL中需要%,此时需在SQL使用%%表示。

python3 pymysql 'latin-1' codec can't encode character 错误 问题解决

https://blog.csdn.net/wanglingxxx/article/details/52049278
posted @ 2020-01-20 16:00  whitesky-root  阅读(1461)  评论(0编辑  收藏  举报