python3 List[List[int]]报错问题
python吧
全部回复
仅看楼主
level 2
leetcode上原本的结构就有使用List[List[int]],但是自己电脑不行是为甚
2019年07月18日 01点07分 1
level 14
python没有这语法,默认参数写法是 matrix=List[list[这里最好不要用int内置函数]]
2019年07月18日 07点07分 2
level 1
导入一个模块就可以 但是我忘了是什么模块
2020年01月13日 14点01分 3
level 12
类型注解是给人看的,而不是机器看的,你自己能看懂就行,别管IDE,反正怎样写解释器都不会报错。
2020年01月13日 23点01分 5
level 1
可以直接导入typing库,即:from typing import List
嵌套声明List[List[int]] 在本地不报错
2020年08月31日 13点08分 6
[真棒]
2022年01月19日 08点01分
1