data = xlrd.open_workbook('name.xlsx')
sheet = data.sheet_by_index(0)
print(sheet.cell_type(1, 1)) # 获取指定单元格类型
print(sheet.cell(1, 2).ctype) # 获取指定单元格类型
data = xlrd.open_workbook('name.xlsx')
sheet = data.sheet_by_index(0)
print(sheet.cell_type(1, 1)) # 获取指定单元格类型
print(sheet.cell(1, 2).ctype) # 获取指定单元格类型