计算1 到 100 所有数的和

n = 1
b = 0
while n < 101:
    b = n + b
    n = n + 1
print(b)
原文地址:https://www.cnblogs.com/xiaoxiaoxiuxingzhe/p/12770294.html