# Python 逆序循环

**URL:** <https://www.isharkfly.com/t/python/15850>\
**Category:** Python\
**Tags:** python\
**Created:** [June 6, 2024, 12:10pm UTC](https://www.isharkfly.com/t/python/15850 "2024-06-06T12:10:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [June 6, 2024, 12:10pm UTC](https://www.isharkfly.com/t/python/15850/1 "2024-06-06T12:10:03Z")

</div>

Python 逆序循环 `range(10, 0, -1)`

上面的代码将会循环输出：

`[10, 9, 8, 7, 6, 5, 4, 3, 2, 1] `

---

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [November 2, 2024, 4:34am UTC](https://www.isharkfly.com/t/python/15850/2 "2024-11-02T04:34:37Z")

</div>

Opened on November 2, 2024, 4:34am UTC


