Commit f7261c3b by BellCodeEditor

save project

parent c894ca03
Showing with 12 additions and 0 deletions
import random
print("这是一个猜数字游戏,这个数在1~99之间")
a=random.randint(1,99)
for i in range(100):
s=int(input("请输入以一个数"))
if s<a:
print("小了")
elif s>a:
print("da了")
else:
print("对了")
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