a=["a","b","c"] b=["b","d"]
set(a) set(b) //把a,b转换成集合
set(a).difference(set(b))
set(b)-set(a)
set(b).difference(set(a))
list(set(a)) //把集合变成list
posted on 2018-07-19 11:19 游荡的鱼 阅读(9699) 评论(0) 编辑 收藏 举报