python中sorted怎么反序排列

如题所述

第1个回答  2017-10-29
a=[2,1,0,3,4]
print(sorted(a))
print(sorted(a,reverse=True))

本回答被提问者采纳
相似回答