why after pop the original list, the reversed list becomes empty?

后端 未结 0 1601
忘了有多久
忘了有多久 2021-01-04 09:48

I have the following code:

s= [1,2,3]
t = reversed(s)

for i in t:
    print(i)
# output: 3,2,1

but if

相关标签:
回答
  • 消灭零回复
提交回复
热议问题