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阅读(2539)
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入门,以及简单爬取网页文本内
48876
47943
38724
35865
30292
27048
26075
20911
20717
19076
515°
614°
618°
620°
597°
581°
650°
720°
840°
948°