python3学习笔记:高阶函数 2020-03-07 本文已影响0人 潼潼夏 高阶函数 函数作为参数的函数,称之为高阶函数,如下所示 def add(a,b,f): return f(a)+f(b) res = add(3,-6,abs) print (res)