python读取XLSX报错:Traceback (most recent call last):怎么解决?

import pandas as pdstudents = pd.read_excel(r'C:\Users\asus\Desktop\test\Students_Score.xlsx', sheet_name='Students')scores = pd.read_excel(r'C:\Users\asus\Desktop\test\Students_Score.xlsx', sheet_name='Scores')table=students.merge(scores,on='ID')print(table)------------------------------------------------------------------------------------------上面的代码图片是报错,应该怎么解决?

第1个回答  2019-09-26
表里面有中文最好加一个encoding='gb18030'本回答被提问者采纳
第2个回答  2019-09-26
看下面还有什么错一起贴出来
相似回答