Commit 54ddd763 by BellCodeEditor

save project

parent 790e73b7
Showing with 2 additions and 1 deletions
...@@ -7,7 +7,8 @@ while low <= high: ...@@ -7,7 +7,8 @@ while low <= high:
hight=(len(num_list)) hight=(len(num_list))
low=num_list(0) low=num_list(0)
if guess == num: if guess == num:
print("找到了,他摘类别") print("找到了,他摘类别",mid)
break
elif guess < num: elif guess < 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