这是代码,其中"rec"变量用于读取Excel工作表中的日期,但其打印浮点值如何以日期格式打印,例如"2015:09:02"
for rec in sorted(out.keys()): print rec #printing float values print str(out[rec])
我有输出:
42240.0 24
xlrd python-2.7
python-2.7 ×1
xlrd ×1