Python 代码:将秒数转换为 HH:MM:SS 格式
t = int(input())
h = t // 3600
m = (t % 3600) // 60
s = t % 60
print('{0:0>2d}:{1:0>2d}:{2:0>2d}'.format(h, m, s))
原文地址: https://www.cveoy.top/t/topic/ouKL 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
t = int(input())
h = t // 3600
m = (t % 3600) // 60
s = t % 60
print('{0:0>2d}:{1:0>2d}:{2:0>2d}'.format(h, m, s))
原文地址: https://www.cveoy.top/t/topic/ouKL 著作权归作者所有。请勿转载和采集!