|

楼主 |
发表于 2019-12-19 09:11:56
|
显示全部楼层
wb = openpyxl.load_workbook(r"D:\SYSTEM\MSO-LYL\Desktop\办公篇.xls")
Traceback (most recent call last):
File "<pyshell#23>", line 1, in <module>
wb = openpyxl.load_workbook(r"D:\SYSTEM\MSO-LYL\Desktop\办公篇.xls")
File "C:\Users\YLLiu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\openpyxl\reader\excel.py", line 312, in load_workbook
reader = ExcelReader(filename, read_only, keep_vba,
File "C:\Users\YLLiu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\openpyxl\reader\excel.py", line 124, in __init__
self.archive = _validate_archive(fn)
File "C:\Users\YLLiu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\openpyxl\reader\excel.py", line 94, in _validate_archive
raise InvalidFileException(msg)
openpyxl.utils.exceptions.InvalidFileException: openpyxl does not support the old .xls file format, please use xlrd to read this file, or convert it to the more recent .xlsx file format.
|
|