高阶函数:将函数作为参数传入

#!/usr/bin/python

def cal(x, y, func):
    return func(x) + func(y);

print cal(-1, -3, abs);

python 高阶函数_高阶