码迷,mamicode.com
首页 > 编程语言 > 详细

python 倒序遍历数组

时间:2020-06-10 11:05:21      阅读:104      评论:0      收藏:0      [点我收藏+]

标签:int   print   pre   code   python   倒序   color   range   pytho   

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

 

python 倒序遍历数组

标签:int   print   pre   code   python   倒序   color   range   pytho   

原文地址:https://www.cnblogs.com/wangjq19920210/p/13083419.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!