以下是xlrd的README.html"快速入门"部分中的前6行:
import xlrd
book = xlrd.open_workbook("myfile.xls")
print "The number of worksheets is", book.nsheets
print "Worksheet name(s):", book.sheet_names()
sh = book.sheet_by_index(0)
print sh.name, sh.nrows, sh.ncols
Run Code Online (Sandbox Code Playgroud)
您可以通过此链接获得教程.同样是文档的最新SVN提交.如果您从源代码发行版或运行Windows安装程序安装了xlrd,那么您应该已经拥有了这些文档.
| 归档时间: |
|
| 查看次数: |
7968 次 |
| 最近记录: |