剑指offer python版 求1+2+…+n

def aa(n):
    return sum(range(n+1))

print(aa(9))
原文地址:https://www.cnblogs.com/xzm123/p/9871229.html