这是我的样例代码。
但是我在这方面遇到了以下错误:
跟踪(最近的调用最先): 文件“/home/deep/ws/xcx.py”,第6行, workbook=xlrd.workbook(file_location) 属性错误:模块“xlrd”没有属性“open_workbook”
import xlrd
file_location=("/home/deep/Desktop/Book1.xlsx")
workbook=xlrd.open_workbook(file_location)
sheet=workbook.sheet_by_index(0)
first=sheet.cell_value(1,1)
print(first)
但是我在这方面遇到了以下错误:
跟踪(最近的调用最先): 文件“/home/deep/ws/xcx.py”,第6行, workbook=xlrd.workbook(file_location) 属性错误:模块“xlrd”没有属性“open_workbook”