Missing parentheses in call to 'print'

这个消息的意思是你正在试图用python3.x来运行一个只用于python2.x版本的python脚本。

print"Hello world"

上面的语法在python3中是错误的。在python3中,你需要将helloworld加括号,正确的写法如下

print("Hello world")

链接:https://www.jianshu.com/p/7856a7e53190
來源:简书

猜你喜欢

转载自www.cnblogs.com/bingws/p/10212812.html
今日推荐