import random
score = 0
i = 1
while i <= 10:
first = random.randint(10, 99)
second = random.randint(10, 99)
sum = int(input(“{0}+{1}=”.format(first, second)))
if sum == first + second:
i=i+1
score = score + 2
else:
i=i+1
score = score - 5
print(“最终得分为:”, score)
02-06
8057
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
03-16
5141
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
05-28
3116
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交