From a30d37719ec46e98f9ee08f38c4622fece04601b Mon Sep 17 00:00:00 2001 From: Li Tang Date: Tue, 17 Nov 2026 16:58:01 +0800 Subject: [PATCH 1/2] Add personalized welcome message --- basics/00_hello_world/hello_world.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/basics/00_hello_world/hello_world.py b/basics/00_hello_world/hello_world.py index e54135b..dd60521 100644 --- a/basics/00_hello_world/hello_world.py +++ b/basics/00_hello_world/hello_world.py @@ -12,6 +12,12 @@ def main() -> None: print("Hello, world!") + name = input("请输入你的姓名:") + age = input("请输入你的年龄:") + welcome_message = f"欢迎你,{name}!你今年{age}岁,祝你学习 Python 愉快!" + print(f"姓名:{name}") + print(f"年龄:{age}") + print(welcome_message) if __name__ == "__main__": From 487b72b3b1cecb4b2f96d2eb15f5fd9fcf1e2c7f Mon Sep 17 00:00:00 2001 From: Li Tang Date: Wed, 18 Nov 2026 22:53:50 +0800 Subject: [PATCH 2/2] Add extra Python welcome message --- basics/00_hello_world/hello_world.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/basics/00_hello_world/hello_world.py b/basics/00_hello_world/hello_world.py index dd60521..eb4841c 100644 --- a/basics/00_hello_world/hello_world.py +++ b/basics/00_hello_world/hello_world.py @@ -18,6 +18,8 @@ def main() -> None: print(f"姓名:{name}") print(f"年龄:{age}") print(welcome_message) + print("祝你学习 Python 愉快!") + if __name__ == "__main__":