原文:【解決方案】編碼問題:UnicodeDecodeError: 'XXX' codec can't decode byte 0xad in position...的錯誤

coding:utf file open test.txt for line in file: print line file.close 報錯:UnicodeDecodeError: gbk codec can t decode byte xad in position... 解決: file open test.txt gt file open test.txt ,encoding utf ...

2014-08-20 16:05 2 13020 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM