worksheet = xlrd.open_workbook("test.xlsx") # 打开excel文件
worksheet = xlrd.open_workbook(filename) # 打开excel文件
File "D:\test\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
解决:
xlrd的版本问题,打开xlsx就报错,可以从2.x.x降至1.2.0版本