From d947eb3f09389e0a107c089e0c0fd1931a120f30 Mon Sep 17 00:00:00 2001 From: RogerWork Date: Mon, 16 Oct 2023 16:51:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=B4=A2=E5=BC=95=E7=9A=84?= =?UTF-8?q?=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 6b811fd..2047419 100644 --- a/main.py +++ b/main.py @@ -15,8 +15,9 @@ def main_process(): return file_list = get_file_list(path) - for f in file_list: - print(f"开始处理: {f}") + file_list_len = len(file_list) + for (i, f) in enumerate(file_list): + print(f"({i+1}/{file_list_len}) - 开始处理: {f}") if md5 := get_md5_by_path(f): print(f"请注意!!!文件的md5({md5})已经存在: {f}") else: