📜  如何保存输入python代码示例

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

代码示例1
#this is a getname command for example

# Function gets name from user
def get_name():
    print("Hello what is your name?")
    name = input("My name is: ")
    print("Hello ", name)
    return name
  
#  you can use the name as a variable in prints
print(name, 'you did very well')
#pls upvote