我们可以实现自己的reduce和filter功能吗?

时间:2017-11-20 20:45:50

标签: python filter reduce

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

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

1 个答案:

答案 0 :(得分:2)

是的,有可能。实际上,the documentation甚至给出了用Python编写的reduce()的示例。

相关问题