SyntaxError: Missing parentheses in call to 'print' 这个错误原因是Python版本问题

 

 

问题

 print "www.baidu.com"           Python2

 print ("www.baidu.com")     Python3

出现

 

SyntaxError: Missing parentheses in call to 'print'

原因:Mac安装俩个python版本,2和3,python2系列可以支持 print “xxxx” ,python系列需要使用print("xxx")

posted @ 2017-12-06 11:10  极光天际  阅读(779)  评论(0编辑  收藏  举报