num = input()
list = [0] * 10
for i in num:
list[int(i)]+=1
for j in range(10):
if list[j] != 0:
print(str(j)+":"+str(list[j]))
L1-003 个位数统计
最新推荐文章于 2024-11-09 21:51:27 发布
num = input()
list = [0] * 10
for i in num:
list[int(i)]+=1
for j in range(10):
if list[j] != 0:
print(str(j)+":"+str(list[j]))