这段代码为什么没有打印出factorial函数的计算结果?
import time def performance(unit): def temp1(f): def temp2(*arg,**kwarg): t1 = time.time(); t2 = time.time(); print "call %s in %f %s" % (f.__name__, t2-t1, unit) f(*arg,**kwarg) return temp2 return temp1 @performance('ms') def factorial(n): return reduce(lambda x,y: x*y, range(1, n+1)) print factorial(10)