From 8ad02c3633043919e13904041b2b505f378ee602 Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Thu, 12 Sep 2024 19:48:23 +0800 Subject: [PATCH] =?UTF-8?q?Create=20=E6=94=B9.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py/改.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 py/改.py diff --git a/py/改.py b/py/改.py new file mode 100644 index 0000000..63f63be --- /dev/null +++ b/py/改.py @@ -0,0 +1,10 @@ +import datetime + +filenames = ["综合源.txt", "综合源.m3u", "组播优选.txt", "酒店优选.txt"] + +now = datetime.datetime.now() +current_date = now.strftime("%d%h") + +new_filenames = [f"{current_date}_{filename}" for filename in filenames] + +print(new_filenames)