标签:技术分享 数据 pytho err cal value erro 获取数据 mos
password = raw_input("请输入密码:")
print '您刚刚输入的密码是:', password
>>> a = input()
123
>>> a
123
>>> type(a)
<type 'int'>
>>> a = input()
abc
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 1, in <module>
NameError: name 'abc' is not defined
>>> a = input()
"abc"
>>> a
'abc'
>>> type(a)
<type 'str'>
>>> a = input()
1+3
>>> a
4
>>> a = input()
"abc"+"def"
>>> a
'abcdef'
>>> value = 100
>>> a = input()
value
>>> a
100
标签:技术分享 数据 pytho err cal value erro 获取数据 mos
原文地址:https://www.cnblogs.com/CH520/p/10182651.html