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阅读(2505)
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入门,以及简单爬取网页文本内
48611
47603
38398
35619
30068
26793
25795
20684
20426
18825
111°
189°
224°
246°
242°
250°
285°
335°
461°
444°