Python 代码中的列表命名为list时,会出现如下错误。 list:list[int] = [1, 2, 3, 4, 5] TypeError: list indices must be integers or slices, not type 建议修改为list2 |
||
|---|---|---|
| .. | ||
| array.assets | ||
| linked_list.assets | ||
| array.md | ||
| index.md | ||
| linked_list.md | ||
| list.md | ||
| summary.md | ||
Python 代码中的列表命名为list时,会出现如下错误。 list:list[int] = [1, 2, 3, 4, 5] TypeError: list indices must be integers or slices, not type 建议修改为list2 |
||
|---|---|---|
| .. | ||
| array.assets | ||
| linked_list.assets | ||
| array.md | ||
| index.md | ||
| linked_list.md | ||
| list.md | ||
| summary.md | ||