📜  python 2d 矩阵声明 - Python 代码示例

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

代码示例3
length, breadth = x, y
matrix = [[-1 for j in range(breadth)] for i in range(length)]
# every element is -1