在打開數據庫鏈接時設置: charset="utf8"
#打開數據庫鏈接 db = pymysql.connect("localhost","root","","user_test",charset="utf8")