python十七:高阶函数
生活随笔
收集整理的這篇文章主要介紹了
python十七:高阶函数
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
高階函數(shù):1.函數(shù)接受的參數(shù)是一個函數(shù)名 ? ? ? ? 2.返回值中包含函數(shù)
def high(n):n()print("from high")def common():print("common func")high(common)總結
以上是生活随笔為你收集整理的python十七:高阶函数的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python十六:lambda匿名函数
- 下一篇: python十八:尾调用与递归