From 6df4d8ff763c39c8ecbab071f18f5b5b6edae30e Mon Sep 17 00:00:00 2001 From: lededev Date: Thu, 7 Apr 2022 05:47:08 +0800 Subject: [PATCH] change description 'total time:' to 'Elapsed time ' --- Movie_Data_Capture.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Movie_Data_Capture.py b/Movie_Data_Capture.py index aa0c5ac..daa6b7a 100644 --- a/Movie_Data_Capture.py +++ b/Movie_Data_Capture.py @@ -655,10 +655,10 @@ if __name__ == '__main__': 剩余个数 = 扫描电影数 - 已处理 总用时 = timedelta(seconds = time.time() - app_start) print(f'All movies:{扫描电影数} processed:{已处理} successes:{完成数} remain:{剩余个数}' + - ' total time:{}'.format( - period(总用时, "{d} day {h:02}:{m:02}:{s:02}") if 总用时.days == 1 - else period(总用时, "{d} days {h:02}:{m:02}:{s:02}") if 总用时.days > 1 - else period(总用时, "{h:02}:{m:02}:{s:02}"))) + ' Elapsed time {}'.format( + period(总用时, "{d} day {h}:{m:02}:{s:02}") if 总用时.days == 1 + else period(总用时, "{d} days {h}:{m:02}:{s:02}") if 总用时.days > 1 + else period(总用时, "{h}:{m:02}:{s:02}"))) if 剩余个数 == 0: break 下次运行 = datetime.now() + timedelta(seconds=再运行延迟)