例如:
def
apply_twice(func, arg):
return
func(func(arg))
add_five(x):
x
+
5
print
(apply_twice(add_five,
10
))
结果:
>>>
20