收起
for in循环只读不写,所以那里写i=...是没用的,可以用下标运算符修改列表:
for i in range(len(ls)): ls[i] = int(ls[i]) n *= ls[i]
报告相同问题?