python学习记录(四)-意想不到
摘要:
计数 from collections import Counter # 计数 res = Counter(['a','b','a','c','a','b']) print(res,type(res)) # Counter({'a': 3, 'b': 2, 'c': 1}) <class 'coll 阅读全文
posted @ 2020-12-17 18:29 欧2020 阅读(51) 评论(0) 推荐(0) 编辑