python实现100以内数求和

s1=0
for i in range(1,101):
    s1+=i
print(s1)

输出截图如下: