print "\nthe total number of errors is:%d"%errorCount
SyntaxError: Missing parentheses in call to ‘print’. Did you mean print("\nthe total number of errors is:%d"%errorCount)?
解决方法:python3.0以上版本的print语句需要加()
print("\nthe total number of errors is:%d"%errorCount)
解决!