简体   繁体   English

如何使用 python 打开 excel 文件并按下按钮?

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

When I open and excel file, the excel show me a message.当我打开 excel 文件时,excel 会显示一条消息。

"Do you want to open this excel file anyway?" “你还是要打开这个 excel 文件吗?” 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.我想通过 python 打开它,然后通过 python 自动单击,之后我将开始通过 Z23EEEB4347BDD2576BFCZB6 程序编辑 excel。 I don't know what to do with pushing the yes button.我不知道按下是按钮该怎么办。 I am totally beginner in python.我完全是 python 的初学者。 I would be grateful if anyone can help me.如果有人可以帮助我,我将不胜感激。

在此处输入图像描述

The Python module pandas can help you. Python 模块pandas可以帮助您。 If you change the file extension to.xlsx as pyzer mentioned, you can access your data with pandas as explained in this tutorial .如果您将文件扩展名更改为 pyzer 提到的.xlsx,您可以按照本教程中的说明使用 pandas 访问您的数据。

For a few general resources on learning Python, I recommend the official documentation and The Hitchiker's Guide to Python .有关学习 Python 的一些通用资源,我推荐官方文档Python 的 Hitchiker 指南

Best of luck!祝你好运!

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

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