小编dou*_*bts的帖子

如何使用xlrd读取日期?

这是代码,其中"rec"变量用于读取Excel工作表中的日期,但其打印浮点值如何以日期格式打印,例如"2015:09:02"

for rec in sorted(out.keys()):
print rec #printing float values
print str(out[rec])
Run Code Online (Sandbox Code Playgroud)

我有输出:

42240.0
24
Run Code Online (Sandbox Code Playgroud)

xlrd python-2.7

6
推荐指数
1
解决办法
6924
查看次数

标签 统计

python-2.7 ×1

xlrd ×1