多测师讲解pymysql _解决中文_高级讲师肖sir

 

问题:((1, ‘?????‘), (2, ‘?????‘), (3, ‘?????‘), (4, ‘?????‘), (5, ‘?????‘))

多测师讲解pymysql _解决中文_高级讲师肖sir

 

 

解决方案:添加:charset=‘utf8

import pymysql
db = pymysql.connect(‘192.168.153.131‘,‘root‘,‘123456‘,‘bbs‘,3306,charset=‘utf8‘)

多测师讲解pymysql _解决中文_高级讲师肖sir

 

多测师讲解pymysql _解决中文_高级讲师肖sir

上一篇:Python中的正则表达式regular expression


下一篇:mysql备份恢复之xtrabackup (XBK、Xbackup)