python之路(二)-collections系列
摘要:
collections提供了一些比较方便的方法,使用时需要先导入模块导入模块:import collections1. 计数器Counter统计参数中出现的次数,以字典的方式返回结果,参数可以是字符串,列表,元祖等。简单使用:import collectionscollections.Counter... 阅读全文
posted @ 2016-01-17 14:50 波- 阅读(231) 评论(0) 推荐(0)
浙公网安备 33010602011771号