python十七:高阶函数

高阶函数:1.函数接受的参数是一个函数名         2.返回值中包含函数

def high(n):
    n()
    print("from high")

def common():
    print("common func")

high(common)

猜你喜欢

转载自blog.csdn.net/m0_37564426/article/details/81055243