cars=['bmw','audi','volks wagen','benz','toyota','honda']
print ("Here is the original list:")
print(cars)
print("\nHere is the sorted list:")
print(sorted(cars))
书上说,如果要按字母顺序相反的顺序显示列表,也可向函数sorted()传递参数reverse=True
方法sort()可以写成sort(reverse=True)
可是函数sorted()要写成sort(cars)
试了好几种写法都不对
请教下这个该怎么写呢?