在笨方法学python 中,有时候我们使用print打印时,会输出如下错误:
Missing parentheses in call to ‘print’
原因:这是因为我们使用python3.0的语法,来运行pyhton2.x的代码。
解决方法:把我们的print后面的变量加上()就好了,即print “ssssssssss”换成print(“ssssssssss”)。
SyntaxError: Missing parentheses in call to 'print'
最新推荐文章于 2023-06-15 12:30:47 发布