Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions basics/00_hello_world/hello_world.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__":
Expand Down