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阅读(2536)
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入门,以及简单爬取网页文本内
48862
47923
38705
35856
30283
27034
26067
20901
20697
19063
498°
593°
603°
605°
584°
570°
633°
707°
827°
925°