会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Avery_rainys
博客园
首页
新随笔
联系
订阅
管理
2021年12月3日
堆排序
摘要: 1 import random 2 3 4 def sift(li, low, high): 5 if low < high: 6 i = low 7 j = 2 * i + 1 8 temp = li[low] 9 while j <= high: 10 if j+1 <= high and li
阅读全文
posted @ 2021-12-03 15:44 Avery_rainys
阅读(35)
评论(0)
推荐(0)
公告