python讀取文件時提示:UnicodeDecodeError: 'gbk' codec can't decode byte 0xaa in position 82: illegal multibyte sequencepython
解決辦法:例如,錯誤代碼是:ide
f=open(file_new,'r')
改成以下:code
f=open(file_new,'r', encoding='UTF-8')
這樣執行python就不會報這個錯誤啦~~~~it