首页 > 技术文章 > Missing parentheses in call to 'print'

ShineLeBlog 2019-05-23 16:45 原文

原因:Python2.x和Python3.x使用print输出时规则不同导致

Python2.x: print k即可

Python3.x:print (k)需要加括号

推荐阅读