假设调用下列函数,请给出其输出结果def algo2

假设调用下列函数,请给出其输出结果

def algo2():
  x='e'
  y='c'
  q=CircularQueue()
  q.append("h")
  q.append("r")
  q.append(y)
  x=q.serve()
  q.append(x)
  x=q.serve()
  q.append("a")
  while not q.empty():
    y=q.serve()
    print(y.end="")
答案

hrca

题目信息

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