转: http://www.python-excel.org/
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.
The Packages
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:
xlrd
This package is for reading data and formatting information from Excel files.
xlwt
This package is for writing data and formatting information to Excel files.
xlutils
This package collects utilities that require both
xlrd and
xlwt, including the ability to copy and modify or filter existing excel files.
The Tutorial
The notes for the tutorial which covers all three packages can be downloaded here:
These notes also make a pretty good reference for the three packages.