: xlrd ( ), XLS. (, NUMBER RK ). , , , , datetime, date time . xlrd , .
, , , . , , " ".
"" , "" "... ..., , () , (b), , " "(c) repr (cell.value) (d) " ", ?
:
import xlrd, sys
def dump_cell(sheet, rowx, colx):
c = sheet.cell(rowx, colx)
xf = sheet.book.xf_list[c.xf_index]
fmt_obj = sheet.book.format_map[xf.format_key]
print rowx, colx, repr(c.value), c.ctype, \
fmt_obj.type, fmt_obj.format_key, fmt_obj.format_str
book = xlrd.open_workbook(sys.argv[1], formatting_info=1)
sheet = book.sheet_by_index(0)
for rowx in xrange(sheet.nrows):
for colx in xrange(sheet.ncols):
dump_cell(sheet, rowx, colx)