Commit 50a9c47a by BellCodeEditor

save project

parent b35ac5bf
Showing with 4 additions and 0 deletions
...@@ -20,3 +20,6 @@ def binary_search(alist,num): ...@@ -20,3 +20,6 @@ def binary_search(alist,num):
high =mid -1 high =mid -1
return None return None
result = 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