您的位置: 首页 > IT文章 > python 从大到小排序 python 从大到小排序 分类: IT文章 • 2024-05-20 10:21:13 a = [3,7,4,9]a = sorted(a,reverse=True)print(a)#[9, 7, 4, 3]