pyhton中SyntaxError:Missing parentheses in call to 'print'

在 Python3.6中使用print “xxx”会出现SyntaxError:Missing parentheses in call to ‘print’的错误,在IDLE中弹出的错误的窗口如下:

print出错

  搜索发现出错原因是在Python2.x中使用print “xxx”输出,而在Python3.x中使用print(“xxx”)输出。

猜你喜欢

转载自blog.csdn.net/xdguangguang/article/details/78692966
今日推荐