python 从大到小排序

a = [3,7,4,9]
a = sorted(a,reverse=True)
print(a)#[9, 7, 4, 3]

原文地址:https://www.cnblogs.com/find1/p/10769443.html