简体   繁体   中英

how to open an excel file with python and push a button?

When I open and excel file, the excel show me a message.

"Do you want to open this excel file anyway?" Yes, No, Cancel

I want to open it by python and automatically click Yes by python too, afterr that I will start to edit the excel by python program. I don't know what to do with pushing the yes button. I am totally beginner in python. I would be grateful if anyone can help me.

在此处输入图像描述

The Python module pandas can help you. If you change the file extension to.xlsx as pyzer mentioned, you can access your data with pandas as explained in this tutorial .

For a few general resources on learning Python, I recommend the official documentation and The Hitchiker's Guide to Python .

Best of luck!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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