📜  numpy ndarray python代码示例中的行数或列数

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

代码示例1
# get number of rows in 2D numpy array.
numOfRows = np. size(arr2D, 0)
# get number of columns in 2D numpy array.
numOfColumns = np. size(arr2D, 1)