编写一个index_function生成一个键,该键用于对未排序列表的元素进行排序。
Write an index_function that will generate a key that can be used for sorting each element of the unsorted list.
If it was an unordered list, we were basically stuck with linear search. Got to walk through the whole list to see if the thing is there.
如果是一个未排序的列表,基本上我们就只能使用线性搜索了,通过遍历整个列表来查看。
应用推荐