美文网首页
Missing parentheses in call to &

Missing parentheses in call to &

作者: 产品经理333 | 来源:发表于2016-05-04 14:25 被阅读55607次

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

print"Hello world"

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

print("Hello world")

相关文章

网友评论

      本文标题:Missing parentheses in call to &

      本文链接:https://www.haomeiwen.com/subject/pbbrrttx.html