【发布时间】:2020-11-25 15:34:45
【问题描述】:
想象一下:
str = input( Muchos numeros separados por ',' : )
list = str.split(', ')
total = list(0) + list(1) + list(2) ... (Number of indexes in the anwer)
如何让它对列表的所有索引求和?
【问题讨论】:
-
为什么你已经得到了完整的字符串,为什么还要把字符串加在一起?