Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 208 Bytes

56.md

File metadata and controls

20 lines (17 loc) · 208 Bytes
@author jackzhenguo
@desc 
@date 2019/3/20

56 反向迭代器reversed

In [1]: rev = reversed([1,4,2,3,1])

In [2]: for i in rev:
     ...:     print(i)
     ...:
1
3
2
4
1