Commit a9b1fd6b by BellCodeEditor

save project

parent 51b5b29d
Showing with 15 additions and 0 deletions
......@@ -3,4 +3,19 @@ goods.pop('农夫山泉')
print(goods)
# 请将"农夫山泉"删掉,并打印出新的商品信息
low = 0
hight = len(num_list)-1
while low < hight:
mid = (low+high)//2
guess_num=num_list[mid]
if guess_num == bingo_num:
print("找到了")
break
elif guess_num < bingo_num:
low = mid+1
elif guess_num > dingo_num:
high =mid-1
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