原文:python读取txt文件时报错UnicodeDecodeError: 'gbk' codec can't decode byte 0x8e in position 8: illegal multibyte sequence

python读取文件时报错UnicodeDecodeError: gbk codec can t decode byte x e in position : illegal multibyte sequence,如下代码: 解决方案 : 此方案虽然没有在报错,但写入的数据不是想要的格式,如下: 解决方案 : 一切保存正常 ...

2019-09-23 15:42 0 321 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM