摘要: 列表 a=[1,2,3] b=[3,4,5] c=[1,1,2,2,3,3] 先看c去重. list(set(c)) a与b交集 list(set(a).intersection(set(b))) 结果:[3] a中有而b中没有的 list(set(a).difference(set(b))) 结果 阅读全文
posted @ 2017-03-10 21:47 恍 阅读(235) 评论(0) 推荐(0) 编辑