运维网's Archiver
论坛
›
Python
› python排序算法的实现-插入
haloi
发表于 2018-8-16 11:56:18
python排序算法的实现-插入
def insertion_sort(list2): for i in range(1, len(list2)):
save = list2
j = i while j > 0 and list2 > save:
list2 = list2
j -= 1
list2 = save
页:
[1]
查看完整版本:
python排序算法的实现-插入