Commit 67fca13e by BellCodeEditor

auto save

parent 2763f6ae
Showing with 17 additions and 0 deletions
import random as r
次数=0
数字=r.randint(1,100)
回答=input("请输入数字")
回答 = int(回答)
while 回答 == 数字:
print("猜中了")
print(次数)
if 回答 > 数字:
print("猜大了")
回答=input("请输入数字")
elif 回答 < 数字:
print("猜小了")
回答=input("请输入数字")
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