标签:pen python int dex print st3 end index 索引
list1=[10,11,12,11,12,13,15,13,14,15]
list2=[]
list3=[]
list4=[]
for i in list1:
if i not in list2:
list2.append(i)
else:
list3.append(i)
list4.append(list1.index(i))
print(list2)
print(list3)
print(list4)
标签:pen python int dex print st3 end index 索引
原文地址:http://www.cnblogs.com/zhangyuxin/p/6196593.html