摘要: 比如,现在有两个list类型: a_list = [1,2,3,4] b_list = [1,4,5] 一. 差集 很明显结果是[2,3,5],下面我们说一下具体方法。 方法a.正常法: ret_list = [] for item in a_list: if item not in b_list: ret_list.append(it... 阅读全文
posted @ 2017-04-12 20:29 woshixinfode 阅读(42221) 评论(2) 推荐(1) 编辑