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阅读(2511)
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入门,以及简单爬取网页文本内
48676
47692
38476
35690
30132
26861
25879
20738
20493
18890
206°
283°
316°
334°
328°
320°
374°
436°
567°
554°