解决UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position

python+pymysql操作数据库,在拼接字符串过程中,出现错误:UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)

解决方法

在代码块顶部引入如下

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: