I think you're looking for a[-1::-1] . The first index gives the start, the second index gives the end, and you want to start at index -1. – ... ... <看更多>
Search
Search
I think you're looking for a[-1::-1] . The first index gives the start, the second index gives the end, and you want to start at index -1. – ... ... <看更多>