본문 바로가기

언어 꿀Tip/Python 꿀tip!

07_01_69. list 내 값 중복 제거

# Python 3 code to demonstrate 
# removing duplicated from list 
# using collections.OrderedDict.fromkeys()
from collections import OrderedDict

# using collections.OrderedDict.fromkeys()
# to remove duplicated 
# from list 
res = list(OrderedDict.fromkeys(l_features))
res