python collections 模块中的 deque

https://blog.csdn.net/HappyRocking/article/details/80058623

可以用deque这个双端队列实现栈和队列。

你可能感兴趣的:(python)