For some needs, a deque may also be useful. You can add and remove items on both ends of a deque at O(1) cost. from collections import deque ...
確定! 回上一頁