简体   繁体   English

有没有办法使用python读取受密码保护的excel文件?

[英]Is there a way to read a password protected excel file using python?

Is there a way to read a password protected excel file using python?有没有办法使用python读取受密码保护的excel文件? i tried using win32com but it required me to manually key in the password in the cmd我尝试使用 win32com 但它需要我在 cmd 中手动输入密码

From a past answer来自过去的回答

Workbooks.Open might do it Syntax is something like xlwb = xlApp.Workbooks.Open(filename, False, True, None, password) documentation: http://msdn.microsoft.com/en-us/library/office/ff194819.aspx Workbooks.Open 可能会这样做语法类似于 xlwb = xlApp.Workbooks.Open(filename, False, True, None, password) 文档: http : //msdn.microsoft.com/en-us/library/office/ff194819。 aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM