📅  最后修改于: 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)