python中raw_input()与input()和print(&acute&acute)与print&acute&acute

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 

猜你喜欢

转载自blog.csdn.net/lxpeifa/article/details/106896815