Commit cd8a4759 by BellCodeEditor

auto save

parent edefc3ef
Showing with 21 additions and 0 deletions
import random
list = [0,1,2,3,4,5,6,7,8,9,10]
c=random.choice(list)
for i in range (5):
p=int(input("请输入1-10"))
if p in list:
if c == p:
print("你赢了")
elif p<c:
print("小了")
else:
print("大了")
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