python openpyxl打开xlsx文件异常,UserWarning: File contains an invalid specification for Sheet1. This will be removed

问题描述

打开xlsx文件时发出警告,选择Sheet工作簿时内容为空

C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\openpyxl\reader\workbook.py:88: UserWarning: File contains an invalid specification for Sheet1. This will be removed

问题原因

其他格式文件保存为xlsx文件时选择了《Script Open xml电子表格*.xlsx》,重新另存为《Excel工作簿 *.xlsx》格式即可。

posted @ 2022-02-17 11:18  追得上的梦想  阅读(2922)  评论(1编辑  收藏  举报