SyntaxError: Missing parentheses in call to 'print'

SyntaxError: Missing parentheses in call to 'print'

由于python2.X版本与python3.X版本输出方式不同造成的,在python3.X的,输入内容时都要带上括号python()。

而且,错误提示中也有所提示,他给出了括号的形式。
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Cmd:", self.cmd)?

posted @ 2020-12-08 09:32  echohelper  阅读(498)  评论(0)    收藏  举报