摘要: ``` javascript 001 ``` 阅读全文
posted @ 2016-07-03 22:35 4Thing 阅读(86) 评论(0) 推荐(0) 编辑
摘要: ``` bash >>> from collections import deque >>> q = deque(maxlen=3) >>> q.append(1) >>> q.append(2) >>> q.append(3) >>> print q deque([1, 2, 3], maxlen=3) >>> q.append(4) >>> print q deque([2, 3, 4], m... 阅读全文
posted @ 2016-07-03 21:44 4Thing 阅读(81) 评论(0) 推荐(0) 编辑