a = [1, 2, 3] b = [3, 2] same_list = [m for m in a if m in b]
优雅地找到两个list的交集(python)
原文:http://www.cnblogs.com/theodoric008/p/7904127.html