#coding=utf-8 import MySQLdb db = MySQLdb.connect("IP","使用者名稱","密碼","庫名",charset = 'utf8')
連線引數里加上 charset='utf8'