python题解
2026-11-21 13:09:50
发布于:广东
0阅读
0回复
0点赞
点个不要钱的赞吧。
a=list(input())
b=[]
for i in a:
c=ord(i)
b.append(c)
b.sort()
c=[]
h=[]
for i in b:
d=chr(i)
c.append(d)
for i in c:
f=c.count(i)
g=str(i)+":"+str(f)
h.append(g)
e=list(dict.fromkeys(h))
for i in e:
print(i)
这里空空如也







有帮助,赞一个