📜  python代码示例中矩阵的长度

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

代码示例1
matrix = [[1, 2]]
rows = len(matrix) # Height.
columns = len(matrix[0]) # Width.
print(rows)
print(columns)