摘要: 1、直接插入排序 def insert_sort(alist): """插入排序""" n = len(alist) for j in range(1,n): i = j while i > 0: if alist[i] < alist[i-1]: alist[i],alist[i-1] = ali 阅读全文
posted @ 2020-02-20 11:42 liuyang9643 阅读(142) 评论(0) 推荐(0)