

我在读取excel文件时出现了"UnicodeDecodeError: 'utf-8' codec can't decode byte 0xee in position 14: invalid continuation byte",网上搜了很久始终没有找到好的解决方法,请问如何解决啊
将

换成如下...替换为你的内容
reader =pd.read_excel(...)
另外,在
str.decode(encoding=' UTF-8' ,errors= 'ignore ' )
这句前面加上#号,如下
#str.decode(encoding=' UTF-8' ,errors= 'ignore ' )
有帮助请采纳,有问题继续交流,你的采纳是对我回答的最大的肯定和动力