iSharkFly
Python 逆序循环
程序语言
Python
python
honeymoose
June 6, 2024, 12:10pm
1
Python 逆序循环
range(10, 0, -1)
上面的代码将会循环输出:
[10, 9, 8, 7, 6, 5, 4, 3, 2, 1]
1 Like