> For the complete documentation index, see [llms.txt](https://xu-an.gitbook.io/sec/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xu-an.gitbook.io/sec/lan/py/excel.md).

# with-EXCEL

##

[xlwings](https://zhuanlan.zhihu.com/p/82783751)模块:专门用于控制Excel的模块

该模块与其他用于处理Excel的模块对比如下：

![](/files/-MHnUFDRRUUHT06S7UwM)

所以该模块优势有：

1. 不仅能读、写和修改两种格式的Excel文件（xls和xlsx），而且能批量处理多个Excel文件
2. 能与Excel VBA结合使用，实现更加强大的数据输入和分析功能

后续会涉及模块有：[os](https://docs.python.org/zh-cn/3/library/os.html)、[pandas](https://www.jianshu.com/p/840ba135df30)、[NumPy](https://www.runoob.com/numpy/numpy-tutorial.html)、[Matplotlib](https://www.runoob.com/w3cnote/matplotlib-tutorial.html)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xu-an.gitbook.io/sec/lan/py/excel.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
