![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
函数式编程
python函数式编程
newtag
切勿眼高手低
展开
-
函数式编程:装饰器
装饰器原创 2021-03-31 08:57:13 · 107 阅读 · 0 评论 -
函数式编程:闭包
闭包原创 2021-03-29 08:59:16 · 159 阅读 · 0 评论 -
函数式编程:匿名函数
匿名函数原创 2021-03-27 15:09:06 · 235 阅读 · 0 评论 -
函数式编程:filter的使用方法
按照惯例,在学习filter函数之前在交互模式下看下filter的文档(养成好习惯,不能做拿来主义,自己还是要实验一下的)python2 >>>Help on built-in function filter in module __builtin__:filter(...) filter(function or None, sequence) -> list, tuple, or string Return those items of se原创 2021-03-26 21:50:06 · 553 阅读 · 0 评论 -
函数式编程:reduce的使用方法
按照惯例,在学习reduce函数之前在交互模式下看下reduce的文档(万一有坑,可以在开始的时候给填上)python2 >>>Help on built-in function reduce in module __builtin__:reduce(...) reduce(function, sequence[, initial]) -> value Apply a function of two arguments cumulatively原创 2021-03-26 13:13:06 · 297 阅读 · 0 评论 -
函数式编程:map的使用方法
在学习map函数的时候,我们先在交互模式中看下map函数的用法说明【注意:python2和python3是有区别的,请注意观察】python2>>>Help on built-in function map in module __builtin__:map(...) map(function, sequence[, sequence, ...]) -> list Return a list of the results of applying原创 2021-03-26 11:10:13 · 876 阅读 · 0 评论