BOM处理
open('data.txt','r',encoding='utf8').read()
//额外存储字节顺序标记/ufeff
open('data.txt','r',encoding='utf8-sig').read()
//忽略标记
open('data3.txt','r',encoding='utf8-sig').write('123')
//加入字节顺序标记
BOM处理
open('data.txt','r',encoding='utf8').read()
//额外存储字节顺序标记/ufeff
open('data.txt','r',encoding='utf8-sig').read()
//忽略标记
open('data3.txt','r',encoding='utf8-sig').write('123')
//加入字节顺序标记