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》格式即可。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM