python:SyntaxError:Missing parentheses in call to 'print'

来源:互联网 发布:淘宝封号查询系统 编辑:程序博客网 时间:2024/06/05 11:29

问题

 print "hello world"

出现

SyntaxError: Missing parentheses in call to 'print'

原因:python版本问题,2和3,python2系列可以支持 print “xxxx” ,python3系列需要使用print("xxx")

1 0
原创粉丝点击