我有这个表格中的列表列表,我想根据值(1.0,2.0,3.0等)进行排序。有没有可以使用的Python模块?在python中有效排序列表
class_list= [['Image_3', '3.0'], ['Image_7', '7.0'], ['Image_4', '4.0'],
['Image_8', '8.0'], ['Image_1', '1.0'], ['Image_5', '5.0'],
['Image_6', '6.0'], ['Image_2', '2.0']]
你看过[文档](https://docs.python.org/2/library/functions.html#sorted)吗?甚至有[关于排序的初学者教程](https://docs.python.org/2/howto/sorting.html#sortinghowto)。 – 2015-03-19 13:05:13