会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
a56爆大奖在线娱乐的博客
a56爆大奖在线娱乐的园子
账号设置
简洁模式
...
退出登录
注册
登录
yzx-sir
且行
博客园
首页
新随笔
联系
订阅
管理
2023年11月6日
二分查找数组中的某个特定数字
摘要: 下面展示python代码 def binary_search(my_list, item): low = 0 high = len(my_list) - 1 while low <= high: mid = (low + high) // 2 guess = my_list[mid] if gues
阅读全文
posted @ 2023-11-06 17:09 YE-
阅读(6)
评论(0)
推荐(0)
编辑
公告