🌈 搜索
📅  最后修改于: 2022-03-11 14:47:17.859000             🧑  作者: Mango
freq = {} for item in my_list: if (item in freq): freq[item] += 1 else: freq[item] = 1