【Python】 Missing parentheses in call to 'print'

问题

 print "www.baidu.com"

出现

SyntaxError: Missing parentheses in call to 'print'

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

猜你喜欢

转载自blog.csdn.net/sinat_36330809/article/details/82592695
今日推荐