源代码
cars = ['Porsche', 'BMW', 'Volvo'] cars.sort(reverse=True) print(cars)
运行结果