📜  python 创建 n*n 矩阵 - Python 代码示例

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

代码示例1
# Creates a list containing 5 lists, each of 8 items, all set to 0
w, h = 8, 5;
Matrix = [[0 for x in range(w)] for y in range(h)]