10.03.2014, 21:40
Code:
# -*- encoding: utf-8 -*- class Queue(): queue = [] def __init__(self): pass def add(self, v): self.queue.append(v) def remove(self): self.queue = filter(lambda x: x != self.queue[0], self.queue) def show(self): print self.queue