diff --git a/basics/00_hello_world/hello_world.py b/basics/00_hello_world/hello_world.py index e54135b..eb4841c 100644 --- a/basics/00_hello_world/hello_world.py +++ b/basics/00_hello_world/hello_world.py @@ -12,6 +12,14 @@ 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) + print("祝你学习 Python 愉快!") + if __name__ == "__main__":