使用python读取excel
来源:互联网 发布:java replaceall \\\\ 编辑:程序博客网 时间:2024/06/11 02:50
使用python读取excel
1.使用的库为lxrd,安装可用:pip install lxrd
# coding=utf-8import xlrd# 文件的名字file_name = "not_get_app.xlsx"# 打开文件bk = xlrd.open_workbook(file_name)# 代开sheet1sh = bk.sheet_by_name("Sheet1")# 获取行数row_num = sh.nrowsrow_list = []for i in range(1, row_num): # 获取第i行的正行的数据 row_data = sh.row_values(i) row_list.append(row_data)# 打印每一行的内容,打印出的为列表的形式for row in row_list: print row
注意:从excel里读取的整数转化出来为浮点型数据
阅读全文
0 0
- 使用python读取excel
- 使用python读取excel
- Python 使用 xlrd 读取 Excel格式文件
- Python 使用 xlrd 读取 Excel格式文件
- python使用xlwt读取文件写入Excel
- Python 使用 xlrd 读取 Excel格式文件
- Python 使用xlrd库读取excel
- python读取excel
- python 读取excel --zhaokuo719
- python 读取excel
- python读取EXCEL
- python读取excel
- python 读取Excel
- Python excel文件读取
- 用python读取excel
- Python 读取excel
- python读取excel文件
- python读取excel文件
- java8开篇
- k近邻算法(K-Nearest Neighbor)
- 10-12无缝滚动、DOM、
- BZOJ 2789 Letters
- Material Design(一)史上最全的材料设计控件大全
- 使用python读取excel
- 一组PHP可逆加密解密算法
- SQL Server 2017 on Linux自动安装
- RequireComponent的使用: 当你添加的一个用了RequireComponent组件的脚本,需要的组件将会自动被添加到game object(游戏物体)。这个可以有效的避免组装错误
- python 函数参数传递
- 无限轮播+搜索
- HDU
- 简化版Vector实现
- Codeforces 189D AlgoRace floyd+DP