变量输入就是用代码获取用户通过键盘输入的信息。
python中可以使用input()函数实现输入变量, input() 函数接受一个标准输入数据,返回为 string 类型。
示例:
>>> a=input("input:")input:1>>> print(a)1>>>