优雅地找到两个list的交集(python)

a = [1, 2, 3]
b = [3, 2]
same_list = [m for m in a if m in b]
posted @ 2017-11-27 14:54  一条图图犬  阅读(258)  评论(0编辑  收藏  举报