可以过滤,前提是你的文件格式是xls,xlsx不可以
记得加formatting_info=True,加上这个读出来的才是带格式的
代码为
wb=xlrd.open_workbook(file, formatting_info=True)
wb_sheet = wb.sheet_by_index(0)
hidden = wb_sheet.rowinfo_map[row_idx].hidden
可以过滤,前提是你的文件格式是xls,xlsx不可以
记得加formatting_info=True,加上这个读出来的才是带格式的
代码为
wb=xlrd.open_workbook(file, formatting_info=True)
wb_sheet = wb.sheet_by_index(0)
hidden = wb_sheet.rowinfo_map[row_idx].hidden