预测遍历求和
for x in [10, 20, 30]
10
20
30
x
运行下面的 Python 3 程序,填写结果。
total = 0
for s in [80, 90, 70]:
total = total + s
print(total)
for x in [10, 20, 30]
x
运行下面的 Python 3 程序,填写结果。
total = 0
for s in [80, 90, 70]:
total = total + s
print(total)
全部评论