为什么我会收到“SytaxError:调用'print'时缺少括号”

时间:2016-08-17 19:29:37

标签: python python-3.x

我刚刚下载并安装了Python 3.5.2,我有两个python文件,我想从CMD运行但是我遇到了问题

SyntaxError: Missing parentheses in call to 'print'

问题代码为:

print '####### ' + modulename
###########################################################
def sqlihunt(dork , filename ):

1 个答案:

答案 0 :(得分:1)

python 3中的print语句需要括号。

例如:print(whatever you want to print goes here)