SyntaxError: Missing parentheses in call to 'print'. Did you mean print("hello,world!")

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/cheng__lu/article/details/89033914

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

猜你喜欢

转载自blog.csdn.net/cheng__lu/article/details/89033914
今日推荐