在 Python3.6中使用print “xxx”会出现SyntaxError:Missing parentheses in call to ‘print’的错误,在IDLE中弹出的错误的窗口如下:
搜索发现出错原因是在Python2.x中使用print “xxx”输出,而在Python3.x中使用print(“xxx”)输出。
在 Python3.6中使用print “xxx”会出现SyntaxError:Missing parentheses in call to ‘print’的错误,在IDLE中弹出的错误的窗口如下:
搜索发现出错原因是在Python2.x中使用print “xxx”输出,而在Python3.x中使用print(“xxx”)输出。