摘要: #collections 模块#Counter 计数器,生成一个类字典类型from collections import Counterstr="abcbcaccbbad"#统计数量dcamd=Counter(str)print(dcamd)''' 打印:Counter({'b': 4, 'c': 阅读全文
posted @ 2021-02-20 10:14 HunterSniper 阅读(61) 评论(0) 推荐(0) 编辑