Python MySQLdb 查询中文出现问号的解决方法 在连接数据库的时候设置如下即可: db = MySQLdb.connect('localhost','root','×××××','test',use_unicode=True,charset="utf8")