Commit 57bb338e by BellCodeEditor

save project

parent 838518f0
Showing with 1 additions and 1 deletions
...@@ -4,7 +4,7 @@ bg=1 ...@@ -4,7 +4,7 @@ bg=1
l_n=0 l_n=0
h=len(num_list)-1 h=len(num_list)-1
while l_n<=h: while l_n<=h:
m=(l+h)//2 m=(l_n+h)//2
g=num_list[m] g=num_list[m]
if g==bg: if g==bg:
print("找到了,他在列表里的索引是:",m) print("找到了,他在列表里的索引是:",m)
......
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