摘要: collection模块: ```python 在字典,列表,元组,集合的基础上,还提供了具名元组,双端队列,计数器,有序字典,默认字典等 1.namedtuple:具名元组,具有名字的元组 from collections import namedtuple eg1: point = namedtuple('坐标',['x','y']) #可以传可迭代对象... 阅读全文
posted @ 2019-07-18 21:17 54菜鸟 阅读(151) 评论(0) 推荐(0)