使用print函数的时候往往会出现这个错误。
当你执行:
print "hello world"
出现以下错误:
Missing parentheses in call to ‘print’
原因:Python2.X和Python3.X不兼容。现在大部分人用的是Python3,而print “hello world”是Python2中的语法,在Python3中需要使用print()语法–加括号。
print ("hello world")
raw_input("hit enter to continue")