python 倒序遍历数组

num = [1,2,3,4,5,6,7,8,9]
for i in range(0, num.__len__())[::-1]:
    print num[i]

 

posted @ 2020-06-10 10:21  salami_china  阅读(1719)  评论(0编辑  收藏  举报