Notice
Recent Posts
Recent Comments
Link
목록Reduce (1)
Kim Jinung
Python - reduce
functools — Higher-order functions and operations on callable objects Source code: Lib/functools.py The functools module is for higher-order functions: functions that act on or return other functions. In general, any callable object can be treated as a function for t... docs.python.org Reduce 함수는 이터러블한 객체의 두 인자에, 함수를 누적 해서 적용할 때 사용할 수 있는 함수다. 리스트 [1, 2, 3]이 있을 때 두 인자에 덧셈이라는 함수를 누적 해서 적용하면 1 + 2 ..
Language/Python
2023. 2. 11. 15:24