Python 교집합 intersection()

Jmnote bot (토론 | 기여)님의 2023년 11월 7일 (화) 23:16 판 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

Python 교집합 intersection()
Python
Copy
s1=set([1,2,3,4,5])
s2=set([4,5,6,7,8])
print(s1, s2)
print(s1.intersection(s2))
Loading

2 같이 보기[ | ]