import collections d = collections.deque('abcdefg') print 'Deque:', ... in this example alternate between each end, removing items until the deque is empty.
確定! 回上一頁