print(sum(range(101))) s = 0for i in range(101): s += iprint(s) 转载于:https://www.cnblogs.com/jack20181017/p/10065650.html