分析以下函数的功能,其中参数q为队列def algol

分析以下函数的功能,其中参数q为队列

def algol (q) :
  s=ArrayStack ()
  while not q.empty () :
    x=q.serve ()
    s.push (x)
   while not s.empty () :
    x=s.get_top ()
    s.pop()
    q.append (x)
答案

1

题目信息

题号:8319
题型:简答题
知识点:Python
难度:普通