语法:变量名= input('提示信息')
age=input("你几岁了:") print(age)
注意:input接收的所有数据都会以字符串的形式存储,如果要进行其他类型的操作,则必须要要进行转换
age=int(input("你几岁了:")) print(age)