+ -
当前位置:首页 → 问答吧 → python中对数组进行排序

python中对数组进行排序

时间:2011-12-09

来源:互联网

给定一个数组,怎样实现对其进行从大到小的排序?例如:给定a=[4,5,8,9,2],要求输出为[9,8,5,4,2]

作者: lp106   发布时间: 2011-12-09

use the fucking google

作者: iambic   发布时间: 2011-12-09