📜  如何在 python 代码示例中使用输入

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

代码示例6
#The input command will popup/print the text placed inside the brackets.
#After the text you can type anything and press enter.
#Then the stuff written in the ansfer field will be saved as the function value.

x = input("write anything after this: ")
print(x)

#This code will first print the stuff written in input (write anything after this:).
#Then it will store the text as the x value.
#Then it will print it.