📅  最后修改于: 2022-03-11 14:45:55.970000             🧑  作者: Mango
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})