黑馬狂野架構(gòu)師3期022
2022-12-12 14:36 作者:rei源義經(jīng) | 我要投稿
已報名>>> 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?(迭代對象) 數(shù)據(jù)創(chuàng)建。如果?iterable?沒有指定,新隊列為空。
標簽: