题解 | #牛牛学字母#
牛牛学字母
http://www.nowcoder.com/practice/c5f0c8a927084e258721b96ad616e070
s = input()
a = dict()
for i in range(len(s)):
try:
a[s[i]] += 1
except:
a[s[i]] = 1
for k, v in a.items():
print(k, v)
牛牛学字母
http://www.nowcoder.com/practice/c5f0c8a927084e258721b96ad616e070
s = input()
a = dict()
for i in range(len(s)):
try:
a[s[i]] += 1
except:
a[s[i]] = 1
for k, v in a.items():
print(k, v)
相关推荐