标签:ram div color turn blog int nbsp dict code
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‘))
标签:ram div color turn blog int nbsp dict code
原文地址:http://www.cnblogs.com/onhacker/p/7070979.html