📜  实现书籍详细信息堆栈的程序(书号,书名).实现推送和显示操作 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:42.762000             🧑  作者: Mango

代码示例1
def push(Books):
    Stack.append(Books)
    print 'Element:', Book, 'inserted successfully'
def pop():
    if Stack == []:
        print('Stack is empty!')
    else:
        print('Deleted element is',Stack.pop())