更新时间:2022-06-11 04:04:06
您已经创建了一个名为 len
的列表,从这里可以看到以下事实:您可以对其进行索引:>
You have created a list named len
as you can see here from the fact that you're able to index it:
len[i] = input()
很自然地, len
不再是获取列表长度的函数,从而导致您收到错误消息.
So naturally, len
is no longer a function that gets the length of a list, leading to the error you receive.
解决方案:为您的 len
列表命名.
Solution: name your len
list something else.