l=['a','a','b','a','b','c'] s=set(l) d={} for x in s: n=l.count(x) d[x]=n print(d)
Sign in to make a reply
吃好睡好心情好的饼饼