Commit d1d45b19 by BellCodeEditor

save project

parent ed066838
Showing with 6 additions and 2 deletions
......@@ -17,4 +17,8 @@ def binary_search(alist,num):
elif guess<num:
low=mid+1
else:
high=mid-1
\ No newline at end of file
high=mid-1
return None
return=binary_search(alist,num)
print("给的数是:",num)
print("索引是:",result)
\ No newline at end of file
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