참고 : https://www.daleseo.com/python-functools-reduce/
파이썬 reduce 함수 사용법
Engineering Blog by Dale Seo
www.daleseo.com
https://codepractice.tistory.com/86
(파이썬) functools 모듈의 reduce 함수
functools 모듈의 reduce 함수는 다음과 같다. def reduce(function, iterable, initializer=None): it = iter(iterable) if initializer is None: value = next(it) else: value = initializer for element in i..
codepractice.tistory.com
'프로그래밍 언어별 tools > 파이썬' 카테고리의 다른 글
파이썬 우선순위 큐, 힙큐 (0) | 2021.10.02 |
---|---|
리스트 정렬 sort, sorted 활용법 (0) | 2021.10.01 |
파이썬 Counter (0) | 2021.09.29 |
[python] 파이썬 join 함수 정리 및 예제 (문자열 합치기) (0) | 2021.08.23 |
[python] 파이썬 리스트(list) 정리 및 예제 (2탄 응용편) (0) | 2021.08.23 |