在执行过程中出现以下报错:
print 'hello world'
File "<ipython-input-1-d05d0c8adf1f>", line 1
print 'hello world'
^
SyntaxError: Missing parentheses in call to 'print'
原因:在Python3中使用Python2的语法,Python无法识别因此报错
在Python3中print语法为:print (‘hello world’)
如下:
print ('hello world')
hello world