Commit 8e5cbe81 by BellCodeEditor

save project

parent 586cea4a
Showing with 1 additions and 1 deletions
......@@ -4,7 +4,7 @@ for i in range(int(input("有几个数字"))):
a=int(input("数字:"))
low=0
high=len(num_list)-1
for i in range(high):
for i in range(len(num_list)+1):
mid=(low+high)//2
if a==num_list[mid]:
print("找到了!索引是"+str(mid))
......
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