python list[dict1, dict2] 去重

f = lambda x,y:x if y in x else x + [y]
url_list = reduce(f, [[], ] + url_list)

posted @ 2014-07-15 14:11  taotaowill  阅读(401)  评论(0编辑  收藏  举报