12.以下哪段程序的运行结果无法打印 1-100 之间所有整数的和?( )
A.print(sum(range(1,100)))
B.i=1
he=0
while i<=100:
he+=i
i+=1
print(he)
C.he=0
for i in range(1,101):
he+=i
print(he)
D.print(sum(range(1,101)))
12.以下哪段程序的运行结果无法打印 1-100 之间所有整数的和?( )
A.print(sum(range(1,100)))
B.i=1
he=0
while i<=100:
he+=i
i+=1
print(he)
C.he=0
for i in range(1,101):
he+=i
print(he)
D.print(sum(range(1,101)))
Scratch3.0 全国青少年软件编程等级考试 Python Scratch图形化一级 Scratch图形化四级 Scratch图形化三级 Scratch图形化二级 电子学会