SyntaxError: Missing parentheses in call to 'print'

来源:互联网 发布:淘宝代客打小人靠谱吗 编辑:程序博客网 时间:2024/06/05 11:29

在笨方法学python 中,有时候我们使用print打印时,会输出如下错误:
Missing parentheses in call to ‘print’
原因:这是因为我们使用python3.0的语法,来运行pyhton2.x的代码。
解决方法:把我们的print后面的变量加上()就好了,即print “ssssssssss”换成print(“ssssssssss”)。

阅读全文
0 0
原创粉丝点击