Python读取excel
来源:互联网 发布:米兔源码 编辑:程序博客网 时间:2024/06/01 08:26
python使用xlrd这个模块可以实现读取excel
直接代码:
#coding=utf-8import osimport xlrdimport xlwtimport xlutils.*location = os.path.dirname(__file__)filename = os.path.join(location, 'test.xls')wbk = xlrd.open_workbook(filename)sheet_names = wbk.sheet_names()#for sheet_name in sheet_names:sheet1 = wbk.sheet_by_index(0)print(sheet1.row_values(1))
结果如下图:
参考:
1. http://www.jb51.net/article/77626.htm
2. http://www.cnblogs.com/lingwang3/p/6416023.html
阅读全文
0 0
- python读取excel
- python 读取excel --zhaokuo719
- python 读取excel
- python读取EXCEL
- python读取excel
- python 读取Excel
- Python excel文件读取
- 用python读取excel
- Python 读取excel
- python读取excel文件
- python读取excel文件
- python 读取不规则excel
- python读取excel数据
- python读取excel数据
- python 读取excel数据
- python读取excel文件
- python读取excel数据
- python读取Excel
- 设计类不能被继承 、只能在堆上创建对象、只能在栈上创建对象。
- POJ 1005--I Think I Need a Houseboat
- static关键字注意事项_对"静态只能访问静态"的理解_(注意指的是一个类中)
- 关于 小米华为手机 不能正确安装游戏包的问题
- 服务器的种类
- Python读取excel
- zk 笔记
- 关于 Exception: An invalid XML character (Unicode: 0x0) was found
- POJ 1006--Biorhythms
- http://blog.csdn.net/pk.html?id=9581
- linux知识点总结3
- XML解析出现An invalid XML character (Unicode: 0x**) was found in the comment.
- 重拾C语言-空指针
- Windows 常用软件备忘