import xlrd
# 读取工作簿
work_book = xlrd.open_workbook('stu.xls')
# 获取表格
sheet = work_book.sheet_by_index(0)
# 通过单元格获取数据
cell = sheet.cell(0, 0)
print(cell, type(cell))
print('cell value', cell.value)
# 通过表格获取数据
cell_value = sheet.cell_value(0, 0)
print('cell value2', cell_value)