美文网首页
SyntaxError: Missing parentheses

SyntaxError: Missing parentheses

作者: 奶思草莓 | 来源:发表于2019-02-14 16:49 被阅读0次

错误原因是因为:Python3中取消了以前Python 2中的语法,两者在打印输出的语法上有所差别,所以在Python 3下面使用之前的语法格式就会报错,错误信息已经提示你需要加上括号,字符串可以用单引号或双引号括起来,正确语法格式如下所示:

相关文章

网友评论

      本文标题:SyntaxError: Missing parentheses

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