登录 注册
for i in range(1,11): print(i)
写个while循环计算1加到100的和
i = 0 sum = 0 while i < 100: i = i + 1 sum = sum + i print(sum)
0