python函数高阶函数是把函数当成一个变量,传递给函数作为参数,或者函数的返回值里面有函数,都称为高阶函数,

1,把函数作为参数传递

def dac(x,y):

  return x+y

def test(n):

  print(n)

test(dac)

输出结果为 函数类型function

2,把函数做为返回值,也是高阶函数

def test(x,y):

  return abs,x,y

输出结果为 列表,包含 函数,参数

文章来自(www.96net.com.cn)

最新文章

  1. 推荐15款制作 SVG 动画的 JavaScript 库
  2. python实用笔记,加快编程速度,lamdba,三元运算,open.
  3. HttpClientHandler
  4. 20135316王剑桥 linux第十一周课实验笔记
  5. entity refenrece 在views中的运用
  6. hdu 2335 Containers
  7. 字符串反转(charat)
  8. 【Delphi】最小化事件捕捉
  9. Merge Cells for DataGrid 合并单元格
  10. xmlns 属性
  11. PKU 1050-To The Max(找矩形内元素最大和)
  12. Redis系列整理
  13. OpenCV中的结构体、类与Emgu.CV的对应表
  14. winform制作小工具的技巧
  15. tkinter第二章(添加图片,背景图片)
  16. Convert BST to Greater Tree
  17. Android View体系(七)从源码解析View的measure流程
  18. 键值对的算子讲解 PairRDDFunctions
  19. day5 if else elif 判断语句
  20. Oracle TNS-01190: The user is not authorized to execute the requested listener command

热门文章

  1. python 数据分析 Numpy(Numerical Python Basic)
  2. 01scikit-learn数据集下载
  3. Support for the experimental syntax 'decorators-legacy' isn't currently enabled (7:1):
  4. loj6038「雅礼集训 2017 Day5」远行 树的直径+并查集+LCT
  5. Test 6.29 T2 染色
  6. ht-4 hashmap特性
  7. 基于MaxCompute InformationSchema进行冷门表热门表访问分析
  8. VR和AR
  9. java扫描仪上传文件
  10. Codeforces 846F - Random Query