함수 union()

Jmnote (토론 | 기여)님의 2014년 8월 20일 (수) 14:17 판 (새 문서: 분류: 집합 ;union ==Python== category: Python <source lang='Python'> set1 = {'A', 'B', 'C', 'D'}; set2 = {'C', 'D', 'E', 'F'}; print( set1.union(set2) ) # {'F', 'C', 'E',...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
union

1 Python

set1 = {'A', 'B', 'C', 'D'};
set2 = {'C', 'D', 'E', 'F'};
print( set1.union(set2) )
# {'F', 'C', 'E', 'D', 'B', 'A'}

2 같이 보기

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