**Python错误记录:Missing parentheses in call to 'print'**

转载原文:https://www.jianshu.com/p/7856a7e53190

感谢作者产品经理马忠信

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

print"Hello world"

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

print("Hello world")

猜你喜欢

转载自blog.csdn.net/feng_jlin/article/details/81873237
今日推荐