#Another type of error
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(
The format of the code is as follows:
print "File %s not exist" % filename
。。。
print '-------xxx------'
change to
print ("File %s not exist" % filename)
print ('-------xxx------')