감동, 마음이 움직이는 것
[python]list 중복값 제거 본문
a = [1, 2, 3, 4, 5, 2, 3, 4]
a = list(set(a))
a
[1, 2, 3, 4, 5]
https://bluese05.tistory.com/13
python list 값 중복 제거하기
Python 의 List 에 중복된 값이 있을 경우, 중복 제거를 하고 싶은 경우가 있다. 물론 직접 해당 기능을 구현할 수 있으나, 간단한 방법이 있다. 바로 python의 자료형 중 set 을 이용한 방법이다. 자료
bluese05.tistory.com
https://ssoonidev.tistory.com/100
[Python] List 중복제거
리스트 중복 제거 리스트 중복 제거 필요에 따라서 List 등의 중복 제거를 해야하는 경우가 있는데요. 다양한 데이터 타입에서 중복을 제거하는 방법에 대하여 알아보도록 합시다. 일반적인 경우
ssoonidev.tistory.com
'Tips (Utility, Computer Language, and etc.)' 카테고리의 다른 글
[python] making a directed network using networkx (0) | 2020.06.21 |
---|---|
[python] sites for plot examples (0) | 2020.06.21 |
[diversity index] (0) | 2020.06.09 |
[latex] matrix with dashed lines and large symbols (0) | 2020.05.21 |
[latex] matrix with a large symbol (0) | 2020.05.21 |