rb = xlrd.open_workbook(file, formatting_info = True) cl = ['DI', 'DO', 'AI', 'AO', 'M', 'Event', 'VALVE', 'MODULE'] for i in cl: if i in rb.sheet_names(): sheet = rb.sheet_by_name(i) log("Проверка " + i) for rownum in range(1, sheet.nrows): row = sheet.row_values(rownum) eval(i)(row, rownum) All cells in Excel have a text format.
If '9' is stored in the first cell, then row [0] will give 9.0, and I need '9'
It is fundamentally important for me to distinguish the values of cells 9 and 9.0
Is it possible to use XLRD, how can I specify that I take everything only in text format from EXCEL?