摘要: def unique_list(seq, excludes=[]): """ 返回包含原列表中所有元素的新列表,将重复元素去掉,并保持元素原有次序 excludes: 不希望出现在新列表中的元素们 """ seen = set(excludes) # see... 阅读全文
posted @ 2011-12-01 11:57 阿债 阅读(206) 评论(0) 推荐(0)