from collections import Counter # print(Counter("宝宝今年特别喜欢王宝强")) # 计数 # lst = ["jay",'jay',"jay","宝宝","宝宝", "胡辣汤", "上官婉儿", "上官婉儿"] # dic = {"a":"哈哈", "b":"哈哈", "c":"车牌"} # c = Counter(dic.values()) # print(c)
posted on 2018-12-27 21:49 =.=== 阅读(129) 评论(0) 编辑 收藏 举报