📜  python初始化二维矩阵 - Python代码示例

📅  最后修改于: 2022-03-11 14:45:20.191000             🧑  作者: Mango

代码示例1
# initialize a matrix of rowxcol with -1
dp = [[-1]*col for _ in range(row)]