Commit 7727bf8b by BellCodeEditor

save project

parent 6f5d4915
Showing with 2 additions and 1 deletions
...@@ -19,7 +19,7 @@ def binary_search(alist,num): ...@@ -19,7 +19,7 @@ def binary_search(alist,num):
else: else:
high = mid - 1 high = mid - 1
return None return None
reult = binary_search(alist_num) result = binary_search(alist,num)
print('老师要找的数是:',num) print('老师要找的数是:',num)
print('它在列表里的索引是:',result) 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