stack1.peek() 返回栈顶元素,但不在堆栈中删除它。 Stack2.pop() 返回栈顶元素,并在堆栈中删除它。 相关文章: 2022-12-23 2022-12-23 2021-08-02 2022-12-23 2022-12-23 2022-12-23 2021-10-29