摘要: https://blog.csdn.net/noaman_wgs/article/category/6322770 阅读全文
posted @ 2019-10-25 23:04 yixiu868 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 1 import random 2 3 def insert_sort(nums): 4 # 排序趟数 5 for i in range(1, len(nums)): 6 current = nums[i] 7 pre_index = i - 1 8 while pre_index >= 0 and nums[pr... 阅读全文
posted @ 2019-10-25 09:31 yixiu868 阅读(149) 评论(0) 推荐(0) 编辑