Update 更新文件名.py

This commit is contained in:
frxz751113
2024-09-15 14:57:43 +08:00
committed by GitHub
parent 6846faf1ba
commit 50300cd5aa
+1 -1
View File
@@ -22,7 +22,7 @@ def delete_nonstandard_files():
def rename_standard_files():
# 获取当前日期时间
now = datetime.datetime.now()
current_date = now.strftime("%m%d%H%M")
current_date = now.strftime("%m%d")
# 获取当前目录下的所有文件
all_files = os.listdir(os.getcwd())