【发布时间】:2017-01-06 16:21:31
【问题描述】:
这是列表:
lsty = ['1:07:11', '2:37:28', '07:11', '1:07:11']
时间可以是“2:37:28”(2h 37m 28s)或“07:11”(7m 11s)。我该如何总结这份清单?
【问题讨论】:
-
你做过研究吗?
-
@Alex.S 是的。我找到了这个link。但是当时间采用这种格式时,它会总结为 h:m:s
标签: python-2.7