The intersection of two list

list(set(a).intersection(set(b)))

Guess you like

Origin blog.csdn.net/weixin_40530363/article/details/90669035