Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import Queue
- q = Queue.LifoQueue()
- for i in range(5):
- q.put(i)
- while not q.empty():
- print q.get(),
- print
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement