python-small-examples

@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
[上一个例子](/python-small-examples/md/55.html) [下一个例子](/python-small-examples/md/57.html)