摘要: def histogram1(s): d = dict() for c in s: d[c] = d.get(c,0)+1 return d h = histogram1('adwagagg') print(h) 阅读全文
posted @ 2022-03-23 21:22 玫瑰少年 阅读(301) 评论(0) 推荐(0) 编辑