Commit d1d45b19 by BellCodeEditor

save project

parent ed066838
Showing with 5 additions and 0 deletions
...@@ -18,3 +18,7 @@ def binary_search(alist,num): ...@@ -18,3 +18,7 @@ def binary_search(alist,num):
low=mid+1 low=mid+1
else: else:
high=mid-1 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