Commit f507b90b by BellCodeEditor

auto save

parent 2ebc6a74
Showing with 13 additions and 0 deletions
import random
b=random.randint(1,10)
print("欢迎来到猜数字游戏!")
a=int(input("请猜出正确答案:"))
while a!=b:
a=int(input("回答错误,继续猜:"))
if a>b:
print("大了")
else:
print("小了")
if a==b:
print("答对了")
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