通过海量题库、编程比赛和实时排名,系统化提升您的编程能力。
以下函数的功能为
def func (strl) : s=ArrayStack () for ch in strl: s.push (ch) str2=" while not s.empty () : str2+=s.pop () return str2