以下python教程说:
列表理解是lambda函数以及功能完整的替代品map(),filter()和reduce(). http://python-course.eu/python3_list_comprehension.php
列表理解是lambda函数以及功能完整的替代品map(),filter()和reduce().
map()
filter()
reduce()
http://python-course.eu/python3_list_comprehension.php
但是,它没有提到列表理解如何替代a reduce()的示例,我无法想象它应该如何成为可能.
可以请某人解释如何通过列表理解实现类似减少的功能或确认它不可能吗?
python list-comprehension list python-3.x
list ×1
list-comprehension ×1
python ×1
python-3.x ×1