用户:流浪狗_用户_癸壬卯子辰辛巳酉甲戊查看:0 回复:0 评论:0 创建时间:2022-07-24T12:38:31
import random
import turtle
__Pen = turtle.Pen()
#开始进入Python的世界
n = random.randint(0, 75)
if (turtle.numinput('对话框', '请输入数字', 0, 0, 75) == n):
print('你输了!')
else:
n = random.randint(0, 50)
if (turtle.numinput('对话框', '请输入数字', 0, 0, 50) == n):
print('你输了!')
else:
n = random.randint(0, 36)
if (turtle.numinput('对话框', '请输入数字', 0, 0, 36) == n):
print('你输了!')
else:
n = random.randint(0, 20)
if (turtle.numinput('对话框', '请输入数字', 0, 0, 20) == n):
print('你输了!')
else:
n = random.randint(0, 10)
if (turtle.numinput('对话框', '请输入数字', 0, 0, 10) == n):
print('你输了!')
else:
print('你赢了!')