预测累加结果
每过一个数,total 就变一次
3
5
8
12
15
20
28
total
运行下面的 Python 3 程序,填写结果。
total = 0
for x in [2, 3, 4]:
total = total + x
print(total)
每过一个数,total 就变一次
total
运行下面的 Python 3 程序,填写结果。
total = 0
for x in [2, 3, 4]:
total = total + x
print(total)
全部评论