Update 更新文件名.py

This commit is contained in:
frxz751113
2024-09-16 07:14:15 +08:00
committed by GitHub
parent 6582db9f62
commit a662f58843
+1 -2
View File
@@ -20,8 +20,7 @@ def delete_nonstandard_files():
print(f"Deleted {old_filename}") print(f"Deleted {old_filename}")
def rename_standard_files(): def rename_standard_files():
# 获取当前日期时间 now = datetime.datetime.utcnow() + datetime.timedelta(hours=8)
now = datetime.datetime.now()
current_date = now.strftime("%m%d") current_date = now.strftime("%m%d")
# 获取当前目录下的所有文件 # 获取当前目录下的所有文件