参考代码:
def unique(old_list):
newList = []
for x in old_list:
if x not in newList :
newList.append(x)
return newList转载请注明:在路上 » 【整理】python中去除数组List中重复的值,即数组去重
参考代码:
def unique(old_list):
newList = []
for x in old_list:
if x not in newList :
newList.append(x)
return newList转载请注明:在路上 » 【整理】python中去除数组List中重复的值,即数组去重