📅  最后修改于: 2022-03-11 14:48:49.428000             🧑  作者: Mango
def add(a, b):
return a + b
def mul(a, b):
return a * b
def calculate(a, b, func): #calculate is higher order function
return func(a, b)
print(calculate(2, 3, mul))