用python自动化办公excel
时间: 2023-08-27 13:16:58 浏览: 168
可以使用Python来实现自动化办公中的Excel操作。你可以使用openpyxl库来读取和写入Excel文件。下面是一个使用Python自动提取Word表格并保存到Excel文件的示例代码:
```python
from docx import Document
from openpyxl import Workbook
doc = Document("test.docx")
table = doc.tables<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [python自动化办公——python操作Excel、Word、PDF集合大全](https://blog.csdn.net/weixin_41261833/article/details/106028038)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [好用到爆的Python自动化办公教程,Python × Excel × Word × PPT 一次解决](https://blog.csdn.net/weixin_41261833/article/details/129977631)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文