Python 熊猫阅读《独角兽》错误:';utf-8';编解码器可以';在位置0处对字节0xd0进行解码:无效的继续字节
以下代码创建错误 UnicodeDecodeError:'utf-8'编解码器无法解码位置0中的字节0xd0:无效的继续字节Python 熊猫阅读《独角兽》错误:';utf-8';编解码器可以';在位置0处对字节0xd0进行解码:无效的继续字节,python,pandas,Python,Pandas,以下代码创建错误 UnicodeDecodeError:'utf-8'编解码器无法解码位置0中的字节0xd0:无效的继续字节 with open(file_path) as excel_file: df = pd.read_excel(excel_file) 下面的代码解决了这个问题 with open(file_path,mode="rb") as excel_file: df = pd.read_excel(excel_file)
with open(file_path) as excel_file:
df = pd.read_excel(excel_file)
下面的代码解决了这个问题
with open(file_path,mode="rb") as excel_file:
df = pd.read_excel(excel_file)