假设你执行了下列的栈操作:s=Stack()

假设你执行了下列的栈操作:s=Stack()

s.push(1)

s.push(3)

s.push(5)

s.pop()

s.push(7)现在栈内还有哪些元素?

A.1,5,7

B.3,5,7

C.1,3,7

D.1,3,5

正确答案:1,3,7

猜你喜欢