练习8.1-2

#! /usr/bin/env python
# -*- coding: utf-8 -*-

'''
@author: liudaoqiang
@file: studycase
@time: 2018/9/7 7:05
'''
from arraystack import ArrayStack

def stackToQueue(arrayStack):

	queue = ArrayStack()
	temp = arrayStack
	while not temp.isEmpty():
		item = temp.pop()
	# item = queue.peek()

	return queue

猜你喜欢

转载自blog.csdn.net/liudaoqiang_tj/article/details/82490580
8.1
今日推荐