From f402a97ac9e5c9bd5a94d962ff53ce31960f6bcd Mon Sep 17 00:00:00 2001 From: mahhawarn Date: Mon, 19 May 2025 20:54:54 +0900 Subject: [PATCH] =?UTF-8?q?=EF=BC=832=20hage.py=E3=81=AB=E9=96=A2=E6=95=B0?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hage.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hage.py b/hage.py index b0f21d2..203926a 100644 --- a/hage.py +++ b/hage.py @@ -1 +1,9 @@ +from datetime import datetime + +def show_current_datetime(): + now = datetime.now() + print("現在の日時:", now.strftime("%Y-%m-%d %H:%M:%S")) + +show_current_datetime() + print("はげ")