双端队列 from collections import deque d = deque(['a','b','c','d','e','f']) python之collection-deque - 触摸壹缕阳光的文章 - 知乎