
本文共 1095 字,大约阅读时间需要 3 分钟。
������xlrd���������Excel���������Python������������
������Excel���������������������������������xlrd���������������������������������������������������������������
������������file_path = r'F:/test.xlsx'
��������������������������������������������������������������������������� UTF-8 ���������������
file_path = file_path.decode('utf-8')
- ������xlrd������������������
- ������������������Sheet������������
- ������������������������������������
- ������������������������������������
- ������������������������������������
- ���������������������������
data = xlrd.open_workbook(file_path)
table = data.sheet_by_name('Sheet1')
nrows = table.nrows
ncols = table.ncols
������rowvalue = table.row_values(5)
������������������5���������������������������
print(rowvalue)
������col_values = table.col_values(6)
������������������6���������������������������
print(col_values)
������������������5������6���������������������
cell_value = table.cell(5, 6).value
print(cell_value)
������������������������������������������������������������xlrd���������Excel���������������
发表评论
最新留言
关于作者
