mirror of
https://github.com/krahets/hello-algo.git
synced 2025-12-16 03:59:18 +08:00
Python 代码中的列表命名为list时,会出现如下错误。 list:list[int] = [1, 2, 3, 4, 5] TypeError: list indices must be integers or slices, not type 建议修改为list2
Python 代码中的列表命名为list时,会出现如下错误。 list:list[int] = [1, 2, 3, 4, 5] TypeError: list indices must be integers or slices, not type 建议修改为list2