From f1c20077c8fa5e94d70fc74ab13c8b89e78b6e16 Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Sat, 14 Sep 2024 11:01:40 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E6=9B=B4=E6=96=B0=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py/更新文件名.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/更新文件名.py b/py/更新文件名.py index 2318a34..4b17b15 100644 --- a/py/更新文件名.py +++ b/py/更新文件名.py @@ -27,7 +27,7 @@ def rename_files(): # 检查文件是否是需要重命名的文件(根据初始文件名判断) if any(old_filename.endswith(init_filename) for init_filename in initial_filenames): if last_update_time and old_filename.startswith(f"{last_update_time}"): - # 如果文件名已包含上次时间,删除该文件 + # 如果存在上次重命名后的文件,删除它 full_old_path = os.path.join(os.getcwd(), old_filename) os.remove(full_old_path) print(f"Deleted {old_filename}")