티스토리 뷰
728x90
>>> a = [1,2,3,4,5]
>>> b = [1,3,5,6]
>>> list(set(a) & set(b))
[1, 3, 5]
https://stackoverflow.com/questions/3697432/how-to-find-list-intersection
How to find list intersection?
a = [1,2,3,4,5] b = [1,3,5,6] c = a and b print c actual output: [1,3,5,6] expected output: [1,3,5] How can we achieve a boolean AND operation (list intersection) on two lists?
stackoverflow.com
728x90
'공부' 카테고리의 다른 글
| [Python] RuntimeError: 'cryptography' package is required for sha256_password or caching_sha2_password auth methods (0) | 2021.08.13 |
|---|---|
| [MySQL] TRUNCATE TABLE {table} (0) | 2021.08.13 |
| [Python] pylint black (black -m {path}) (0) | 2021.07.25 |
| [Python] string format range text (0) | 2021.07.25 |
| [Linux] overwrite symbolic link (0) | 2021.07.25 |
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 테슬라 레퍼럴
- 테슬라 리퍼럴 코드 생성
- 클루지
- COUNT
- Bot
- 테슬라 리퍼럴 코드 혜택
- 테슬라
- wlw
- 인스타그램
- 테슬라 추천
- 테슬라 레퍼럴 적용 확인
- 어떻게 능력을 보여줄 것인가?
- Kluge
- follower
- 테슬라 레퍼럴 코드 확인
- 김달
- 테슬라 리퍼럴 코드
- 개리마커스
- 모델y
- 유투브
- 레퍼럴
- 연애학개론
- 할인
- 팔로워 수 세기
- 메디파크 내과 전문의 의학박사 김영수
- 모델 Y 레퍼럴
- 책그림
- 테슬라 크레딧 사용
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 |
글 보관함