下列Python代码执行后,其输出是0到N之间(包含N)所有整数之和。不限定N为正整数。( )
N = int(input())
tot = 0
for i in range(N + 1):
tot += i
print(tot)
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析