文件名称:pyexcelerator-0.6.4.1
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:169.58kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
Excel文件读取
安装: python setup.py install
from pyExcelerator import *
sheets = parse_xls( d:/a.xls )
很简单,与 xlrd 不同。xlrd 需要先调用book = xlrd.open_workbook(filename)打开文档,然后再调用sh = book.sheet_by_index(i)来得到第几个sheet,然后再使用sh.cell_value(i, j)得到i行j列的单元格的值。操作多了一点。而上面的parse_xls(filename)则直接返回一个列表,每一项就是一个sheet的数据。每项是一个二元组(表名,单元格数据)。其中单元格数据为一个字典,键值就是单元格的索引(i,j)。如果某个单元格无数据,那么就不存在这个值。看似简单,但从处理上不象 xlrd 一样,可以知道每个sheet的最大行数和列数,然后进行循环。而使用 pyExcelerator 好象没有最大行数和列数,再加上空数据又不存在,因此在处理上相对麻烦一些。这样在处理上还需要注意。它与 xlrd 一样都支持 unicode ,但好象没有 xlrd 一样方便地判断单元格的类型的方法,感觉还是 xlrd 在功能上可能要强一些。当然这只是个人感觉,再加上只是看了看例子,并没有怎么使用。-Excel file read
安装: python setup.py install
from pyExcelerator import *
sheets = parse_xls( d:/a.xls )
很简单,与 xlrd 不同。xlrd 需要先调用book = xlrd.open_workbook(filename)打开文档,然后再调用sh = book.sheet_by_index(i)来得到第几个sheet,然后再使用sh.cell_value(i, j)得到i行j列的单元格的值。操作多了一点。而上面的parse_xls(filename)则直接返回一个列表,每一项就是一个sheet的数据。每项是一个二元组(表名,单元格数据)。其中单元格数据为一个字典,键值就是单元格的索引(i,j)。如果某个单元格无数据,那么就不存在这个值。看似简单,但从处理上不象 xlrd 一样,可以知道每个sheet的最大行数和列数,然后进行循环。而使用 pyExcelerator 好象没有最大行数和列数,再加上空数据又不存在,因此在处理上相对麻烦一些。这样在处理上还需要注意。它与 xlrd 一样都支持 unicode ,但好象没有 xlrd 一样方便地判断单元格的类型的方法,感觉还是 xlrd 在功能上可能要强一些。当然这只是个人感觉,再加上只是看了看例子,并没有怎么使用。-Excel file read
(系统自动生成,下载前可以参看下载内容)
下载文件列表
pyexcelerator-0.6.4.1/
pyexcelerator-0.6.4.1/hrc/
pyexcelerator-0.6.4.1/hrc/py-2.4-hrc.py
pyexcelerator-0.6.4.1/hrc/python.hrc
pyexcelerator-0.6.4.1/pyExcelerator/
pyexcelerator-0.6.4.1/pyExcelerator/Utils.py
pyexcelerator-0.6.4.1/pyExcelerator/ExcelFormulaLexer.py
pyexcelerator-0.6.4.1/pyExcelerator/ImportXLS.py
pyexcelerator-0.6.4.1/pyExcelerator/Style.py
pyexcelerator-0.6.4.1/pyExcelerator/Cell.py
pyexcelerator-0.6.4.1/pyExcelerator/Row.py
pyexcelerator-0.6.4.1/pyExcelerator/Bitmap.py
pyexcelerator-0.6.4.1/pyExcelerator/UnicodeUtils.py
pyexcelerator-0.6.4.1/pyExcelerator/Column.py
pyexcelerator-0.6.4.1/pyExcelerator/ExcelFormulaParser.py
pyexcelerator-0.6.4.1/pyExcelerator/ExcelFormula.py
pyexcelerator-0.6.4.1/pyExcelerator/Worksheet.py
pyexcelerator-0.6.4.1/pyExcelerator/Deco.py
pyexcelerator-0.6.4.1/pyExcelerator/__init__.py
pyexcelerator-0.6.4.1/pyExcelerator/ExcelMagic.py
pyexcelerator-0.6.4.1/pyExcelerator/antlr.py
pyexcelerator-0.6.4.1/pyExcelerator/Formatting.py
pyexcelerator-0.6.4.1/pyExcelerator/excel-formula.g
pyexcelerator-0.6.4.1/pyExcelerator/Workbook.py
pyexcelerator-0.6.4.1/pyExcelerator/CompoundDoc.py
pyexcelerator-0.6.4.1/pyExcelerator/BIFFRecords.py
pyexcelerator-0.6.4.1/setup.py
pyexcelerator-0.6.4.1/CHANGES.txt
pyexcelerator-0.6.4.1/LICENSE.txt
pyexcelerator-0.6.4.1/tools/
pyexcelerator-0.6.4.1/tools/xls2csv.py
pyexcelerator-0.6.4.1/tools/xls2html.py
pyexcelerator-0.6.4.1/tools/xls2txt.py
pyexcelerator-0.6.4.1/tools/Analyzer.py
pyexcelerator-0.6.4.1/tools/compdoc-dumper.py
pyexcelerator-0.6.4.1/tools/xls2csv-gerry.py
pyexcelerator-0.6.4.1/tools/biff-dumper.py
pyexcelerator-0.6.4.1/README.txt
pyexcelerator-0.6.4.1/THANKS.txt
pyexcelerator-0.6.4.1/PKG-INFO
pyexcelerator-0.6.4.1/TODO.txt
pyexcelerator-0.6.4.1/examples/
pyexcelerator-0.6.4.1/examples/xls2csv.py
pyexcelerator-0.6.4.1/examples/mini.py
pyexcelerator-0.6.4.1/examples/big-16Mb.py
pyexcelerator-0.6.4.1/examples/protection.py
pyexcelerator-0.6.4.1/examples/numbers.py
pyexcelerator-0.6.4.1/examples/xls2html.py
pyexcelerator-0.6.4.1/examples/wsprops.py
pyexcelerator-0.6.4.1/examples/python.bmp
pyexcelerator-0.6.4.1/examples/blanks.py
pyexcelerator-0.6.4.1/examples/big-35Mb.py
pyexcelerator-0.6.4.1/examples/merged.py
pyexcelerator-0.6.4.1/examples/xls2txt.py
pyexcelerator-0.6.4.1/examples/image.py
pyexcelerator-0.6.4.1/examples/formula_names.py
pyexcelerator-0.6.4.1/examples/sst.py
pyexcelerator-0.6.4.1/examples/panes.py
pyexcelerator-0.6.4.1/examples/unicode1.py
pyexcelerator-0.6.4.1/examples/format.py
pyexcelerator-0.6.4.1/examples/dates.py
pyexcelerator-0.6.4.1/examples/hyperlinks.py
pyexcelerator-0.6.4.1/examples/num_formats.py
pyexcelerator-0.6.4.1/examples/merged0.py
pyexcelerator-0.6.4.1/examples/unicode2.py
pyexcelerator-0.6.4.1/examples/parse-fmla.py
pyexcelerator-0.6.4.1/examples/outline.py
pyexcelerator-0.6.4.1/examples/formulas.py
pyexcelerator-0.6.4.1/examples/unicode0.py
pyexcelerator-0.6.4.1/examples/row_styles.py
pyexcelerator-0.6.4.1/examples/merged1.py
pyexcelerator-0.6.4.1/examples/row_styles_empty.py
pyexcelerator-0.6.4.1/examples/col_width.py
pyexcelerator-0.6.4.1/.cvsignore
pyexcelerator-0.6.4.1/museum/
pyexcelerator-0.6.4.1/museum/mini-mini.xls
pyexcelerator-0.6.4.1/museum/P-0508-0000507647-3280-5298.xls
pyexcelerator-0.6.4.1/museum/chart1v8.xls
pyexcelerator-0.6.4.1/museum/frmla.xls
pyexcelerator-0.6.4.1/museum/mini.xls
pyexcelerator-0.6.4.1/museum/oo14.xls
pyexcelerator-0.6.4.1/museum/excel2003.xls
pyexcelerator-0.6.4.1/museum/macro2v8.xls
pyexcelerator-0.6.4.1/hrc/
pyexcelerator-0.6.4.1/hrc/py-2.4-hrc.py
pyexcelerator-0.6.4.1/hrc/python.hrc
pyexcelerator-0.6.4.1/pyExcelerator/
pyexcelerator-0.6.4.1/pyExcelerator/Utils.py
pyexcelerator-0.6.4.1/pyExcelerator/ExcelFormulaLexer.py
pyexcelerator-0.6.4.1/pyExcelerator/ImportXLS.py
pyexcelerator-0.6.4.1/pyExcelerator/Style.py
pyexcelerator-0.6.4.1/pyExcelerator/Cell.py
pyexcelerator-0.6.4.1/pyExcelerator/Row.py
pyexcelerator-0.6.4.1/pyExcelerator/Bitmap.py
pyexcelerator-0.6.4.1/pyExcelerator/UnicodeUtils.py
pyexcelerator-0.6.4.1/pyExcelerator/Column.py
pyexcelerator-0.6.4.1/pyExcelerator/ExcelFormulaParser.py
pyexcelerator-0.6.4.1/pyExcelerator/ExcelFormula.py
pyexcelerator-0.6.4.1/pyExcelerator/Worksheet.py
pyexcelerator-0.6.4.1/pyExcelerator/Deco.py
pyexcelerator-0.6.4.1/pyExcelerator/__init__.py
pyexcelerator-0.6.4.1/pyExcelerator/ExcelMagic.py
pyexcelerator-0.6.4.1/pyExcelerator/antlr.py
pyexcelerator-0.6.4.1/pyExcelerator/Formatting.py
pyexcelerator-0.6.4.1/pyExcelerator/excel-formula.g
pyexcelerator-0.6.4.1/pyExcelerator/Workbook.py
pyexcelerator-0.6.4.1/pyExcelerator/CompoundDoc.py
pyexcelerator-0.6.4.1/pyExcelerator/BIFFRecords.py
pyexcelerator-0.6.4.1/setup.py
pyexcelerator-0.6.4.1/CHANGES.txt
pyexcelerator-0.6.4.1/LICENSE.txt
pyexcelerator-0.6.4.1/tools/
pyexcelerator-0.6.4.1/tools/xls2csv.py
pyexcelerator-0.6.4.1/tools/xls2html.py
pyexcelerator-0.6.4.1/tools/xls2txt.py
pyexcelerator-0.6.4.1/tools/Analyzer.py
pyexcelerator-0.6.4.1/tools/compdoc-dumper.py
pyexcelerator-0.6.4.1/tools/xls2csv-gerry.py
pyexcelerator-0.6.4.1/tools/biff-dumper.py
pyexcelerator-0.6.4.1/README.txt
pyexcelerator-0.6.4.1/THANKS.txt
pyexcelerator-0.6.4.1/PKG-INFO
pyexcelerator-0.6.4.1/TODO.txt
pyexcelerator-0.6.4.1/examples/
pyexcelerator-0.6.4.1/examples/xls2csv.py
pyexcelerator-0.6.4.1/examples/mini.py
pyexcelerator-0.6.4.1/examples/big-16Mb.py
pyexcelerator-0.6.4.1/examples/protection.py
pyexcelerator-0.6.4.1/examples/numbers.py
pyexcelerator-0.6.4.1/examples/xls2html.py
pyexcelerator-0.6.4.1/examples/wsprops.py
pyexcelerator-0.6.4.1/examples/python.bmp
pyexcelerator-0.6.4.1/examples/blanks.py
pyexcelerator-0.6.4.1/examples/big-35Mb.py
pyexcelerator-0.6.4.1/examples/merged.py
pyexcelerator-0.6.4.1/examples/xls2txt.py
pyexcelerator-0.6.4.1/examples/image.py
pyexcelerator-0.6.4.1/examples/formula_names.py
pyexcelerator-0.6.4.1/examples/sst.py
pyexcelerator-0.6.4.1/examples/panes.py
pyexcelerator-0.6.4.1/examples/unicode1.py
pyexcelerator-0.6.4.1/examples/format.py
pyexcelerator-0.6.4.1/examples/dates.py
pyexcelerator-0.6.4.1/examples/hyperlinks.py
pyexcelerator-0.6.4.1/examples/num_formats.py
pyexcelerator-0.6.4.1/examples/merged0.py
pyexcelerator-0.6.4.1/examples/unicode2.py
pyexcelerator-0.6.4.1/examples/parse-fmla.py
pyexcelerator-0.6.4.1/examples/outline.py
pyexcelerator-0.6.4.1/examples/formulas.py
pyexcelerator-0.6.4.1/examples/unicode0.py
pyexcelerator-0.6.4.1/examples/row_styles.py
pyexcelerator-0.6.4.1/examples/merged1.py
pyexcelerator-0.6.4.1/examples/row_styles_empty.py
pyexcelerator-0.6.4.1/examples/col_width.py
pyexcelerator-0.6.4.1/.cvsignore
pyexcelerator-0.6.4.1/museum/
pyexcelerator-0.6.4.1/museum/mini-mini.xls
pyexcelerator-0.6.4.1/museum/P-0508-0000507647-3280-5298.xls
pyexcelerator-0.6.4.1/museum/chart1v8.xls
pyexcelerator-0.6.4.1/museum/frmla.xls
pyexcelerator-0.6.4.1/museum/mini.xls
pyexcelerator-0.6.4.1/museum/oo14.xls
pyexcelerator-0.6.4.1/museum/excel2003.xls
pyexcelerator-0.6.4.1/museum/macro2v8.xls
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.