方法1
list=[1,1,2,3] set=set(list) list2=list(set)
方法2
list=[1,1,2,3] list2=[] for i in list: if i not in list2: list2.append(i)
方法1
list=[1,1,2,3] set=set(list) list2=list(set)
方法2
list=[1,1,2,3] list2=[] for i in list: if i not in list2: list2.append(i)