📜  如何在列表中查找缺失的项目 - Python 代码示例

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

代码示例1
from collections import Counter
target_list = ["one", "two", "three", "four", "five", "one" ]
output_list = ['two','three','four', 'five']
Counter(target_list)-Counter(output_list)

output
Counter({'one': 2})