count = 1 sum = 0 while count<=100: sum+=count print(sum) 转载于:https://www.cnblogs.com/bigbigbird/p/11170689.html