From 292837a9b43200a5bb06f2e3e0f8c98abf574b72 Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Sun, 15 Sep 2024 11:20: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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/更新文件名.py b/py/更新文件名.py index e46740e..b45a352 100644 --- a/py/更新文件名.py +++ b/py/更新文件名.py @@ -46,8 +46,8 @@ def rename_files(): full_new_path = os.path.join(os.getcwd(), new_filename) os.rename(full_old_path, full_new_path) print(f"Renamed {old_filename} to {new_filename}") - else: - continue + else: + continue # 更新记录时间的文件 with open(time_file_path, 'w') as time_file: time_file.write(current_date)