1-100求和 sum(range(101))


print(sum(range(101)))


s = 0
for i in range(101):
s += i
print(s)
 
posted @ 2018-12-04 17:49  Jack的逆旅  阅读(1527)  评论(0编辑  收藏  举报