2022-12-06|592阅|作者:云代码会员|举报 摘要:import time
p = int(input("输入最小范围(不低于10):"))
if p < 10:
print("不能低于10!")
while True:
p = int(input("重新输入:"))
if p
import time
p = int(input("输入最小范围(不低于10):"))
if p < 10:
print("不能低于10!")
while True:
p = int(input("重新输入:"))
if p > 10:
break
l = int(input("输入最大范围(没有上限):"))
if l < p:
print("不能小于最小范围!")
print("你输入的最小范围是:",p)
while True:
l = int(input("重新输入:"))
if l > p:
break
print("\n请输入题数:")
a = int(input(">"))
point = a
time.sleep(1)
b = input("系统检测到您的权限是3级,可开启破解系统\n如果您没有拥有3级权限\n但是要开启\n系统并不拦着\n但是您会被看不起\n由于您的身份特殊,可以开启破解系统,是否开启?y/n")
if b == 'y':
time.sleep(1)
print("破解开启成功!")
elif b == 'n':
time.sleep(1)
print("成功取消开启!")
for i in range(a):
import random
x = random.randint(p,l)
y = random.randint(p,l)
z = x+y
if b == 'y':
time.sleep(1)
print("x=",x)
time.sleep(1)
print("y=",y)
time.sleep(1)
print("x+y等于几?")
time.sleep(1)
print("系统成功捕获题目内容")
time.sleep(1)
print("破解系统正在运行")
time.sleep(1)
print("系统正在破解中。。。")
time.sleep(1)
print("系统破解过程大概需要5秒,请耐心等待")
time.sleep(5)
print("叮咚!\n系统及时破解成功,答案为:" + str(z))
time.sleep(1)
q = int(input("输入>"))
z = int(z)
if z == q:
print("系统判定答案中。。。")
time.sleep(5)
print("你答对了")
else:
print("系统判定中。。。")
time.sleep(5)
print("你答错了")
time.sleep(1)
print("你真虚啊,有答案了还答错,小辣鸡")
time.sleep(1)
print("获取正确答案中。。。")
time.sleep(3)
print("正确答案是:", z)
point-=1
elif b == 'n':
time.sleep(1)
print("x=",x)
time.sleep(1)
print("y=",y)
time.sleep(1)
print("x+y等于几?")
q = int(input(">"))
if z == q:
print("系统判定您的答案中,稍后")
time.sleep(1)
print("你答对了")
else:
time.sleep(1)
print("系统判定您的答案中,稍后")
time.sleep(1)
print("你答错了")
time.sleep(1)
print("正确答案是:", z)
point-=1
else:
print("警告⚠\n必须输入y/n!")
print("由于输入错误,分数归零")
continue
print("总分数:", point)
if b != 'y' and 'n':
print("上面分数已清零,不计入总分")