📌  相关文章
📜  python 计算列表中的出现次数 - Python 代码示例

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

代码示例4
your_list = ["a", "b", "a", "c", "c", "a", "c"]
d= {}
for items in your_list:
    d[items] = your_list.count(items)
print(d)