python异常错误:SyntaxError: Missing parentheses in call to 'print'

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_31279347/article/details/82779071

在python中:print “xxx”
出现异常错误如下:

SyntaxError: Missing parentheses in call to 'print'

原因:python2系列可以支持 print “xxxx” ,python3系列需要使用print(“xxx”)
请检查python对应的版本语法

猜你喜欢

转载自blog.csdn.net/qq_31279347/article/details/82779071
今日推荐