首页 > 代码库 > day11

day11

1 def histogram(s):
2     d = dict()
3     for i in s:
4         
5         d[i] = d.get(i, 0)
6         d[i] = d[i] + 1
7     return d
8             
9 print(histogram(fuckfuckfuck))

 

day11