用途
itertools.filterfalse:
import itertoolsr = list(itertools.filterfalse(lambda x: x in data1, data2)) + list(itertools.filterfalse(lambda x: x in data2, data1))assert r == [{'name': 'String 3'}]
欢迎分享,转载请注明来源:内存溢出
用途
itertools.filterfalse:
import itertoolsr = list(itertools.filterfalse(lambda x: x in data1, data2)) + list(itertools.filterfalse(lambda x: x in data2, data1))assert r == [{'name': 'String 3'}]
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)