Commit b9f4fc95 by BellCodeEditor

save project

parent d757dc53
Showing with 1 additions and 1 deletions
...@@ -8,7 +8,7 @@ while low<=high: ...@@ -8,7 +8,7 @@ while low<=high:
mid=(low+high )//2 mid=(low+high )//2
guss_num=num_list[mid] guss_num=num_list[mid]
if guss_num==bingo_num: if guss_num==bingo_num:
print("找到了,它在列表里的索引是"mid) print("找到了,它在列表里的索引是:"mid)
break break
elif guss_num<bingo_num: elif guss_num<bingo_num:
low=mid+1 low=mid+1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment