【问题标题】:Can we implement our own reduce and filter functions? [closed]我们可以实现自己的reduce和filter函数吗? [关闭]
【发布时间】:2018-05-04 04:31:19
【问题描述】:

是否可以实现自定义的python reduce和filter函数?

是否可以检查 python reduce 和 filter 函数是如何实现的?我们可以编写自己的 reduce 和 filter 函数吗?

【问题讨论】:

  • 是吗?这似乎很广泛。
  • 你到底在问什么?这个问题很模糊。

标签: python filter reduce


【解决方案1】:

是的,这是可能的。事实上,the documentation 甚至给出了一个用 Python 编写的reduce() 的例子。

【讨论】:

  • 感谢您将我指向有用的链接
  • @Bravo 请注意,当然,reducefilter不是用 Python 编写的。
猜你喜欢
  • 2014-01-19
  • 2020-07-27
  • 2018-10-30
  • 2012-01-12
  • 1970-01-01
  • 1970-01-01
  • 2017-10-26
  • 1970-01-01
  • 2015-05-19
相关资源
最近更新 更多