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

来源:互联网 发布:百视通r3300m安装软件 编辑:程序博客网 时间:2024/06/05 07:04

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

print出错

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

阅读全文
0 0