二十.python中的输入函数(两种方法)

1.input()函数输入:python 格式: 变量名=input('请输入文字说明')函数  input()函数会自动识别输入内容的能力,经常使用于输入Number(数字)类型使用,若要进行字符串输入不建议使用3d #coding:utf-8 age = input('请输入你的年龄:') print '你的年龄是%d岁' %age print type(age) name = input('
相关文章
相关标签/搜索