如何传递参数reverse=True到sorted()?

2025-04-07 18:02:20
推荐回答(1个)
回答1:

cars = ['bmw', 'audi', 'toyota', 'subaru']


print(sorted(cars, reverse=True))