byte 0xff in position 0也可能意味着文件以UTF-16编码,那么您可以with open(path, encoding=‘utf-16’) as f:
UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xff in position 0:
最新推荐文章于 2024-09-13 21:26:23 发布
byte 0xff in position 0也可能意味着文件以UTF-16编码,那么您可以with open(path, encoding=‘utf-16’) as f: