1.问题描述:Python读取文件时出现:UnicodeDecodeError: 'gbk' codec can't decode byte 0xb7 in position 2069: illegal multibyte sequence
例:open(path)
2.原因:读取文件的字符编码问题
3.解决方法:读取时加入'r',encoding='UTF8'》》 》open(path,'r',encoding='UTF-8')
1.问题描述:Python读取文件时出现:UnicodeDecodeError: 'gbk' codec can't decode byte 0xb7 in position 2069: illegal multibyte sequence
例:open(path)
2.原因:读取文件的字符编码问题
3.解决方法:读取时加入'r',encoding='UTF8'》》 》open(path,'r',encoding='UTF-8')