2、求1-100的所有数的和
i = 0 list_1 =list() # print(type(list_1)) while True: i +=1 list_1.append(i) if i > 100: break print(list_1) ret =sum(list_1) print(ret)