摘要: 简介:collections 是 python 内建的一个集合模块,里面封装了许多集合类,其中队列相关的集合只有一个:deque。deque 是双边队列(double-ended queue),具有队列和栈的性质,在 list 的基础上增加了移动、旋转和增删等。 常用方法: d = collecti 阅读全文
posted @ 2020-04-15 14:23 AlwaysBeta 阅读(3705) 评论(2) 推荐(0) 编辑