1049. 数列的片段和(20)——Python
num = input()num = int(num)string = input().split()list_1 = list(string)sum = 0count_1 = numcount_2 = 1length = len(list_1)#得到结果for i in range(length): list_1[i] = float(list_1[i]) sum += l