11月 30 python3 从1加到n的和 Posted on 2018 年 11 月 30 日 by 张 子萌 本来是想找个函数,但是网上大部分都是for和while太麻烦,如下即可。 从0加到5 sum([n for n in range(6)])