在python下读取带bom的utf-8格式的文件可以用encoding='utf_8_sig' : with open('filename.txt', 'r', encoding='utf_8_sig') as fp: print(fp.read()).
確定! 回上一頁