Windows下打开带有excel公式的文件读取为None解决方案
作者:互联网
from win32com.client import Dispatch def just_open(filename='文件的绝对路径'): xlApp = Dispatch("Excel.Application") xlApp.Visible = False xlBook = xlApp.Workbooks.Open(filename) xlBook.Save() xlBook.Close()
pip install pywin32
先将文件进行打开,然后再进行读取。
参考 https://cloud.tencent.com/developer/article/1742134
标签:文件,None,读取,Windows,excel,xlBook,Dispatch,filename,xlApp 来源: https://www.cnblogs.com/hany-postq473111315/p/16469072.html