def seconds_to_time(seconds):
m, s = divmod(seconds, 60)
h, m = divmod(m, 60)
return("%d:%02d:%02d" % (h, m, s))
python 秒数转换为时分秒
最新推荐文章于 2023-09-07 15:35:25 发布
def seconds_to_time(seconds):
m, s = divmod(seconds, 60)
h, m = divmod(m, 60)
return("%d:%02d:%02d" % (h, m, s))