def f1(x):
return x*2
def new_fn(f):
def fn(x):
print 'call' + f.__name__ + '()'
return f(x) #这里最不懂,哪来的f()?
return fn
g1 = new_fn(f1)
print g1(5)
添加回答
举报
0/150
提交
取消