admin管理员组

文章数量:1611165

在python中打开txt文件,报错如下:

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc6 in position 7: invalid continuation byte

 

 

检查文件编码格式为“ANSI”,另存为文件编码为UTF-8,再次运行。正常

 

 

 

 

本文标签: DecodebyteUTFCodecInvalid