如何获得nD数组中列的长度?
例如,我有一个名为a的nD数组.当我打印a.shape时,它返回(1,21).我想在数组a的列大小范围内进行for循环.我如何获得价值
python numpy
numpy ×1
python ×1