基本没难度 记得用count方法 省事
inp=list(input())
inpset=sorted(set(inp))#集合去重 再拍个序 满足题目要求
for i in inpset:
print(f"{i}:{inp.count(i)}")
基本没难度 记得用count方法 省事
inp=list(input())
inpset=sorted(set(inp))#集合去重 再拍个序 满足题目要求
for i in inpset:
print(f"{i}:{inp.count(i)}")