八大排序算法(Python实现)

冒泡排序 def bubble_sort(lists): for i in range(len(lists): for j in range(i+1, len(lists)): if lists[i] > lists[j]: lists[i], lists[j] = lists[j], lists[i] return lists 选择排序 def select_sort(li
相关文章
相关标签/搜索