함수 filter()

Jmnote (토론 | 기여)님의 2014년 8월 21일 (목) 13:06 판
filter

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 }}