添加Python相关的内容。
Python
网友最新评论 (1)
- #------------------------------------------------------------------------------ # remove overlapped item in the list def uniqueList(old_list): newList = [] for x in old_list: if x not in newList : newList.append(x) return newList 这个方法不是很好呀 old,new new = [old[i] for i in roldnge(len(old)) if old[i] not in old[:i]] 一行搞定