1 | How to reduce 'attention residue' in your life |
模拟栈随机存取若干字符:
1 | [root@VM_0_13_centos pyQueueStack]# python stack.py |
模拟队列随机存取若干字符:
1 | [root@VM_0_13_centos pyQueueStack]# python queue.py |
模拟 2个栈 实现 队列:
1 | [root@VM_0_13_centos pyQueueStack]# python stack2queue.py |
1 | # coding=utf-8 |
队列 当 栈 使用:
1 | [root@VM_0_13_centos pyQueueStack]# python queue2stack.py |