Commit 2288333b by BellCodeEditor

save project

parent d4117e3a
Showing with 2 additions and 0 deletions
...@@ -7,6 +7,8 @@ while low<=high: ...@@ -7,6 +7,8 @@ while low<=high:
guss=num_list[mid] guss=num_list[mid]
if guss==num: if guss==num:
print("找到了") print("找到了")
print(mid)
break
elif:guss<num: elif:guss<num:
low=mid+1 low=mid+1
else: else:
......
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