SyntaxError: Missing parentheses in call to 'print'

xiaoxiao2021-02-28  43

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

转载请注明原文地址: https://www.6miu.com/read-78239.html

最新回复(0)