python 处理excel文件

2023-01-31 02:01:42 python excel 文件

有两种办法


1.使用 Xlrd/xlwt 操作 excel

Http://liluo.org/blog/2011/01/python-using-xlrd-xlwt-operate-excel/


Xlrd/xlwt库的功能有限,比如有的excel单元数值是50%,用这个库只能识别出这个类型是数字类型,而无法精确到百分号类型


所以推荐用第二种办法


2.用Openpyxl库,功能更强大,不过只支持excel 2007以上的版本

教程如下

http://www.ajiex.com/post/Pythonku-openpyxldu-xie-excel2007


相关文章