python 从大到小排序

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

猜你喜欢

转载自www.cnblogs.com/find1/p/10769443.html
今日推荐