📌  相关文章
📜  编写一个接受用户的 Python 程序 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:20.791000             🧑  作者: Mango

代码示例1
firstName = input("Enter your first name : ") # ask for the user's first name
lastName = input("Enter your last name : ") # ask for the user's last name
print(f"Hello {lastName} {firstName}") # print the whole
# We here used a f-string which allows to put variables' value in a string
# by writing them between {}