함수 filter()

Jmnote (토론 | 기여)님의 2014년 8월 21일 (목) 13:06 판 (새 문서: ;reduce ==Python== category: Python ;Python 3 <source lang='Python'> numbers = [1, 2, 3, 4, 5, 6] print( list(filter(lambda x: x % 2 == 0, numbers)) ) # [2, 4, 6] </source> ==...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
reduce

1 Python

Python 3
numbers = [1, 2, 3, 4, 5, 6]
print( list(filter(lambda x: x % 2 == 0, numbers)) )
# [2, 4, 6]

2 같이 보기

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