python初学 Missing parentheses in call to 'print' Python

初识python,先运行输出Hello World

先建立新的工程,new-》python package,hello world文件,new-》python file hello.py文件

在空白处,写上print "Hello, World!";

右键,运行,提示

Missing parentheses in call to 'print' Python

后来查明,得知,我装了python3.4版本,而以上语法属于python2.x版本的语法,3.4不识别。

猜你喜欢

转载自blog.csdn.net/qq_38491376/article/details/80188496
今日推荐