Python 获取二维数组的行列数的2种方法 其他 2021-04-02 23:54 0 阅读 方法一: x.shape[0]:获取数组的行数. x.shape[1]:获取数组的列数. 方法二: len(x):获取数组的行数. len(x[0]):获取数组的列数. 猜你喜欢