📜  查找列表之间的差异 - Python 代码示例

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

代码示例1
a = ['1', '2']
b = ['1', '2', '3', '4']
diff = list(set(a) - set(b))

['3', '4']