解决修改encoding为utf-8_sig或者utf_8_sig. open('1.txt', encoding='utf_8_sig' ). 第二种解决方案: import codecs # 解决txt utf-8文件开头的BOM ...
確定! 回上一頁