Why?为什mo
2026-07-06 21:46:34
发布于:山东
25阅读
0回复
0点赞
哪位大佬来看一下
x = list(map(int,input("").split(" ")))
stack = []
for i in x:
stack.append(i)
while stack:
print(f"=====stk.size[{len(stack)}]=====")
v = stack.pop()
print(f" stk.pop[{v}]")

































吾已崩溃
福了
全部评论 4
错了
6天前 来自 山东
0n = int(input())
x = list(map(int, input().split()))
stack = []
for num in x:
stack.append(num)
while stack:
size = len(stack)
top_val = stack.pop()
print(f"=stk.size[{size}]==")
print(f" stk.pop[{top_val}]")1周前 来自 江苏
0print(f"stk.size[{size}]")
1周前 来自 江苏
0
n = int(input())
x = list(map(int, input().split()))
stack = []
for num in x:
stack.append(num)
while stack:
size = len(stack)
top_val = stack.pop()
print(f"=stk.size[{size}]==")
print(f" stk.pop[{top_val}]")1周前 来自 江苏
0怎么了
1周前 来自 江苏
0






有帮助,赞一个