
请把图看完,然后给我解答就可以了,谢谢这位兄弟的感谢这位兄弟的帮忙
def func():
temp=[]
a=input()
while a!='finish':
if a=='delete':
temp.pop()
continue
if a.isdigit():
temp.append(temp[-1])
a=input()
continue
temp.append(a)
a=input()
print(temp)
func()