input()函数
1.等待输入;
2.将输入的内容赋值给了等于号前面的变量;
3.input返回的数据类型是str。
1 name = input('your name:') 2 print('welcom {0}'.format(name), type(name)) 3 4 执行结果 5 your name:lipandeng 6 welcom lipandeng <class 'str'>
发布时间:2019-03-12 23:11:42编辑:auto阅读(2099)
input()函数
1.等待输入;
2.将输入的内容赋值给了等于号前面的变量;
3.input返回的数据类型是str。
1 name = input('your name:') 2 print('welcom {0}'.format(name), type(name)) 3 4 执行结果 5 your name:lipandeng 6 welcom lipandeng <class 'str'>
上一篇: PyQt5--QColorDiaglog
下一篇: Python入门,以及简单爬取网页文本内
46600
44504
35936
33498
28192
24755
23676
18879
18177
16868
4668°
5230°
4758°
4893°
5557°
4522°
4573°
5118°
5018°
6266°