#另外一种错误
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(

查看代码,格式如下:

print "文件%s不存在" % filename
。。。
print '-------xxx------'

改成
print ("文件%s不存在" % filename)
print ('-------xxx------')

参考:https://stackoverflow.com/questions/41341149/python-3-6-0-syntax-error-missing-parentheses-in-call-to-print?noredirect=1&lq=1

posted on 2019-08-30 09:38  你不知道的浪漫  阅读(564)  评论(0编辑  收藏  举报