SyntaxError: Missing parentheses in call to 'print'. Did you mean print("hello,world!")
Python3中取消了以前Python 2中的语法,两者在打印输出的语法上有所差别,所以在Python 3下面使用之前的语法格式就会报错,错误信息已经提示你需要加上括号,字符串可以用单引号或双引号括起来。
Print不同版本调用不同
猜你喜欢
转载自blog.51cto.com/sonice/2470722
今日推荐
周排行