Python range() with negative strides

前端 未结 7 972

Is there a way of using the range() function with stride -1?

E.g. using range(10, -10) instead of the square-bracketed values below?

<
7条回答
提交回复
热议问题