装饰器学习
def f1(x): return x*x def new_fn(f): def fn(j): print 'print'+f.__name__ return f(j) return fn g1 = new_fn(f1)print g1(5)