UPDATE

上级 dc0bac1e
sum = 0;
# 初始化变量sum为0
sum = 0
# 从0到100遍历整数
for i in range(101):
# 将变量i的值加到sum中
sum += i
print(sum)
\ No newline at end of file
# 输出最终的sum的值
print(sum)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册