求python 两列表的差集

来源:互联网 发布:vue.js 入门教程 编辑:程序博客网 时间:2024/06/05 09:57

a = [1,2,3,4]b = [2,3,4,5,6]c = [v for v in b if v not in a]

原创粉丝点击