标签:range code logs += print int div span style
sum = 1 for i in range(0,101): # sum = sum + i sum += i print(sum)
sum +=i 等于 sum = sum + i
sum=1+2+3+…+100
原文地址:http://www.cnblogs.com/yrxns/p/7743941.html