黑马狂野架构师3期022
已报名>>> Point = collections.namedtuple('Point', ('x', 'y'))>>> p = Point(1, 2)>>> p.x1>>> p.y2>>> p[0]1>>> p[1]2
deque
collections.deque([iterable[, maxlen]])
返回一个新的双向队列对象,从左到右初始化(用方法 append()
) ,从 iterable (迭代对象) 数据创建。如果 iterable 没有指定,新队列为空。