python 从大到小排序

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

posted on 2019-04-25 16:51  冬天里暖阳  阅读(2747)  评论(0编辑  收藏  举报

导航