源代码
fruits = ['apple', 'banana', 'cherry'] fruits.reverse() print(fruits)
运行结果