📜  在 python 列表中相交 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:00.858000             🧑  作者: Mango

代码示例1
>>> a = [1,2,3,4,5]
>>> b = [1,3,5,6]
>>> list(set(a) & set(b))
[1, 3, 5]