The input function uses:
variable = input ("prompt")
input can enter a value from the keyboard, and the value type is str;
advanced application:
variables can be transformed into
code examples:
myname=input("提示语:我名字")
yourname=input("提示语:你名字")
print(myname+"和"+yourname)
myage=input("提示语:我年龄")
yourage=input("提示语:你年龄")
print(myage+"和"+yourage)
print(int(myage)+int(yourage))