高阶函数:1.函数接受的参数是一个函数名 2.返回值中包含函数
def high(n):
n()
print("from high")
def common():
print("common func")
high(common)
高阶函数:1.函数接受的参数是一个函数名 2.返回值中包含函数
def high(n):
n()
print("from high")
def common():
print("common func")
high(common)