"Python 교집합 intersection()"의 두 판 사이의 차이

잔글 (Jmnote님이 Python 세트 intersection() 문서를 Python 교집합 intersection() 문서로 이동했습니다)
1번째 줄: 1번째 줄:
==개요==
==개요==
;값의 순서 없고,  값의 중복 불가
;Python 교집합 intersection()


==set intersection 예제 (교집합)==
==set intersection 예제 (교집합)==
11번째 줄: 11번째 줄:


==같이 보기==
==같이 보기==
* [[Python 리스트]]
* [[Python 집합]]
* [[Python 교집합]]


 
[[분류: Python 집합]]
[[분류: Python 세트]]

2020년 2월 8일 (토) 13:27 판

1 개요

Python 교집합 intersection()

2 set intersection 예제 (교집합)

s1=set([1,2,3,4,5])
s2=set([4,5,6,7,8])
print(s1, s2)
print(s1.intersection(s2))

3 같이 보기

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