【Python】 Missing parentheses in call to 'print'

来源:互联网 发布:python string转list 编辑:程序博客网 时间:2024/06/05 11:04

问题

 print "www.baidu.com"

出现

SyntaxError: Missing parentheses in call to 'print'

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

阅读全文
0 0
原创粉丝点击