def add(x,y,f): return f(x) + f(y) def make(x): return x + 10 print add(3,-8,make) #输出的结果就是15
编写高阶函数,就是让函数的参数能够接收别的函数。