def timeCost(self, t_start):
t_now = time.time()
m, s = divmod(t_now-t_start, 60)
h, m = divmod(m, 60)
return "%02d:%02d:%02d" % (h, m, s)
python 秒数转化为时分秒
最新推荐文章于 2023-05-07 09:30:00 发布
def timeCost(self, t_start):
t_now = time.time()
m, s = divmod(t_now-t_start, 60)
h, m = divmod(m, 60)
return "%02d:%02d:%02d" % (h, m, s)