xlrd我已经安装了1.2.0版本的为啥还不识别.xlsx格式的表格?
import xlrd # import openpyxl data = xlrd.open_workbook("data1.xlsx") print(data.sheet_loaded(0))
"E:\Embedded programming\Python\20210201Monday\venv\Scripts\python.exe" "E:/Embedded programming/Python/20210201Monday/hello.py"
Traceback (most recent call last):
File "E:/Embedded programming/Python/20210201Monday/hello.py", line 4, in <module>
data = xlrd.open_workbook("data1.xlsx")
File "E:\Embedded programming\Python\20210201Monday\venv\lib\site-packages\xlrd\__init__.py", line 170, in open_workbook
raise XLRDError(FILE_FORMAT_DESCRIPTIONS[file_format]+'; not supported')
xlrd.biffh.XLRDError: Excel xlsx file; not supported