会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
HunterSniper
博客园
首页
新随笔
联系
管理
订阅
2021年2月20日
python collections
摘要: #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)
编辑
公告