mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-25 03:08:54 +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