会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
mbcwdl
博客园
首页
新随笔
联系
订阅
管理
2021年5月31日
Python 快速排序_
摘要: def quick_sort(L): return q_sort(L, 0, len(L) - 1) def q_sort(L, left, right): if left < right: pivot = Partition(L, left, right) q_sort(L, left, pivo
阅读全文
posted @ 2021-05-31 16:17 mbcwdl
阅读(28)
评论(0)
推荐(0)
2021年5月18日
Python作业-快速排序
摘要: def quick_sort(L): return q_sort(L, 0, len(L) - 1) def q_sort(L, left, right): if left < right: pivot = Partition(L, left, right) q_sort(L, left, pivo
阅读全文
posted @ 2021-05-18 13:35 mbcwdl
阅读(43)
评论(0)
推荐(0)
2021年4月15日
Python作业- 求三个数中的最大值
摘要: def max_num_compare(n1, n2): if n1 > n2: return n1 else: return n2 def max_num(n1, n2, n3): m = max_num_compare(n1, n2) if m > n3: return m else: retu
阅读全文
posted @ 2021-04-15 15:47 mbcwdl
阅读(1085)
评论(0)
推荐(0)
公告