如何在Python中反转列表?
问题: How can I do the following in Python? 如何在Python中执行以下操作? array = [0, 10, 20, 40] for (i = array.length() - 1; i >= 0; i--) I need to have the elements of an array, but from the end to the beginning. 我需要一个数组的元素,但是要从头到尾。 解决方案: 参考一: https://stackoom.com/question/GX0S/如何在Python中反转列表 参考二: https://oldbug.net/q/GX0S/How-can-I-reverse-a-list-in-Python 来源: oschina 链接: https://my.oschina.net/u/4428122/blog/4317878