算法基础知识

模拟栈 栈就是后进先出的数据结构node stack = [] def pushit(): stack.append(input('Enter your new string:').strip()) def popit(): if len(stack) == 0: print("You can't pop from an empty stack!") e
相关文章
相关标签/搜索