Commit 81c520c4 by BellCodeEditor

save project

parent 36c64c1a
Showing with 13 additions and 2 deletions
...@@ -12,4 +12,15 @@ while low<=high: ...@@ -12,4 +12,15 @@ while low<=high:
elif guess<bingo_num: elif guess<bingo_num:
low=mid+1 low=mid+1
elif guess>bingo_num: elif guess>bingo_num:
high=mid-1 high=mid-1
\ No newline at end of file import random
while True:
a=int(input("请输入查找的数"))
b=random.randint(0,101)
if a<b:
print("小了")
elif a>b:
print("大了")
else
print("猜对了")
break
\ 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