用python xlrd读取excel表格报错,该怎么解决?
python是3.8.1版本
代码为:
import xlrd
wb = xlrd.open_workbook("C:\Users\Elon Musk\AppData\Local\Programs\Python\Python38_603288_利润表_年报.xlsx")
sheet_name = wb.sheet_names()
sh = wb.sheet_by_name('Sheet1')
wage = sh.row_values(1)
print(wage[1:])
在地址前面加上字母r
不知道你这个问题是否已经解决, 如果还没有解决的话:https://blog.csdn.net/m0_51777056/article/details/125746183?spm=1001.2014.3001.5501