📜  python代码示例中的频率计数

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

代码示例2
freq = {} 
    for item in my_list: 
        if (item in freq): 
            freq[item] += 1
        else: 
            freq[item] = 1