python Traceback (most recent call last):
File “”, line 1, in
NameError: name ‘raw_input’ is not defined
python
版本2.7 -> 版本3.0
输入与输出变化 :
1、输出 print
>>> print'hello,world'
File "<stdin>", line 1
print'hello,world'
^
SyntaxError: invalid syntax
>>> print 'hello, world'
File