함수 reduce()

Jmnote (토론 | 기여)님의 2014년 8월 21일 (목) 13:05 판 (새 문서: ==Python== category: Python <source lang='Python'> import functools print( functools.reduce(lambda x, y: x + y, numbers) ) # 21 </source> ==같이 보기== *map *filter...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)


1 Python

import functools
print( functools.reduce(lambda x, y: x + y, numbers) )
# 21

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}