我有一个从排序的csv创建的以下列表
list1 = sorted(csv1, key=operator.itemgetter(1))
我实际上想按两个标准对列表进行排序:首先是字段1中的值,然后是字段2中的值.我该怎么做?
python sorting
python ×1
sorting ×1