f = abs print(f(-1))
1
abs = len L = [1,2,3] print(abs(L))
3
def add(x,y,f): return f(x)+f(y) print(add(-4,9,abs))
13
python--函数式编程与高阶函数
原文:https://www.cnblogs.com/SCCQ/p/12271381.html