1 讀取時open(‘xx.txt’ , encoding=‘UTF-8’) 後面加上編碼格式 2 python2更新到python3 3 将pycharm的file encoding 改為 UTF-8