print("请输入题数") a = int(input(">")) point=a for i in range(a): import random x = random.randint(1,101) y = random.randint(1,101) z = x+y print("x=",x) print("y=",y) print("x+y等于几?") q = int(input(">")) if z == q: print("你答对了") else: print("你答错了") point-=1 print("分数:",point)