找回密码
 注册
搜索
[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
查看: 20906|回复: 4

[技术讨论] python处理excel操作的相关模块

[复制链接]
发表于 2012-12-26 19:14:06 | 显示全部楼层 |阅读模式
本帖最后由 523066680 于 2012-12-26 19:30 编辑

模块/资料连接
http://www.python-excel.org/

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.

中文资料
Python Excel Tutorial 指南
http://www.iteye.com/topic/1114817


注意以下情况:
1. 不适合处理需要密码访问的文档(下载模块后参考README.html)
Unlikely to be done:
Handling password-protected (encrypted) files.
2. 支持的版本有限
Versions of Excel supported: 2004, 2002, XP, 2000, 97, 95, 5.0, 4.0, 3.0. 2.x could be done readily enough if any demand.
发表于 2012-12-26 19:40:52 | 显示全部楼层
有没有VBA for libreoffice 的相关文章?
 楼主| 发表于 2012-12-26 19:43:16 | 显示全部楼层
回复 2# hacker85


    无有,直接度娘/谷姐
发表于 2012-12-27 10:02:37 | 显示全部楼层
现在用2003、2007、2010的比较多吧
 楼主| 发表于 2012-12-27 11:04:41 | 显示全部楼层
本帖最后由 523066680 于 2012-12-27 11:06 编辑

哎哟 刚刚谷歌一下有个
openpyxl - A Python library to read/write Excel 2007 xlsx/xlsm files

官方示例也很清楚
http://packages.python.org/openpyxl/
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|批处理之家 ( 渝ICP备10000708号 )

GMT+8, 2026-3-17 00:49 , Processed in 0.017102 second(s), 8 queries , File On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表