Python 操作Excel文件模块
官方:http://www.python-excel.org/
https://github.com/python-excel
https://github.com/python-excel/tutorial xlrd, xlwt,xlutils 用法说明文档
This repo is the home of an effort to turn the orignal tutorial covering xlrd, xlwt and xlutils into a Sphinx project.
It is currently stalled and likely always will be. In the meantime, here's a link to a PDF rendering of the original Open Office document:
https://github.com/python-excel/tutorial/raw/master/python-excel.pdf xlrd, xlwt,xlutils 用法说明文档
Working with Excel Files in Python
This site contains pointers to the best information available about working with Excel files in the Python programming language.
Reading and Writing Excel Files
There are python packages available to work with Excel files that will run on any Python platform and that do not require either Windows or Excel to be used. They are fast, reliable and open source:
openpyxl
The recommended package for reading and writing Excel 2010 files (ie: .xlsx)
Download | Documentation | Bitbucket
https://openpyxl.readthedocs.io/en/stable/ 说明文档
xlsxwriter
An alternative package for writing data, formatting information and, in particular, charts in the Excel 2010 format (ie: .xlsx)
Download | Documentation | GitHub
pyxlsb
This package allows you to read Excel files in the xlsb
format.
pylightxl
This package allows you to read xlsx
and xlsm
files and write xlsx
files.
Download | Documentation | GitHub
xlrd
This package is for reading data and formatting information from older Excel files (ie: .xls)
Download | Documentation | GitHub
xlwt
This package is for writing data and formatting information to older Excel files (ie: .xls)
Download | Documentation | Examples | GitHub
xlutils
This package collects utilities that require both xlrd
and xlwt
, including the ability to copy and modify or filter existing excel files.
NB: In general, these use cases are now covered by openpyxl!
Download | Documentation | GitHub
Writing Excel Add-Ins
The following products can be used to write Excel add-ins in Python. Unlike the reader and writer packages, they require an installation of Microsoft Excel.
PyXLL
PyXLL is a commercial product that enables writing Excel add-ins in Python with no VBA. Python functions can be exposed as worksheet functions (UDFs), macros, menus and ribbon tool bars.
Homepage | Features | Documentation | Download
xlwings
xlwings is an open-source library to automate Excel with Python instead of VBA and works on Windows and macOS: you can call Python from Excel and vice versa and write UDFs in Python (Windows only). xlwings PRO is a commercial add-on with additional functionality.
Homepage | Documentation | GitHub | Download
https://github.com/xlwings/xlwings github
https://docs.xlwings.org/zh_CN/latest/index.html 中文
https://docs.xlwings.org/en/stable/index.html 英文
https://docs.xlwings.org/en/stable/quickstart.html
The Mailing List / Discussion Group
There is a Google Group dedicated to working with Excel files in Python, including the libraries listed above along with manipulating the Excel application via COM.
Commercial Development
The following companies can provide commercial software development and consultancy and are specialists in working with Excel files in Python:
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· winform 绘制太阳,地球,月球 运作规律
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
2020-01-12 f.lux 护眼,保护眼睛,保护视力 (推荐)
2020-01-12 Gidot TypeSetter (排版助手) 3.1.1.2
2019-01-12 VBA 常用功能集锦
2019-01-12 WPS 2019 VBA根据匹配表更新工作表名称