摘要: collections collections是日常工作中的重点、高频模块,常用类型有: 计数器(Counter) 双向队列(deque) 默认字典(defaultdict) 有序字典(OrderedDict) 可命名元组(namedtuple) 1. Counter Counter作为字典dici 阅读全文
posted @ 2018-02-28 16:09 Fate0729 阅读(24629) 评论(0) 推荐(10)