ndarray.squeeze(axis=None) 和 numpy.squeeze(a, axis=None)[source] 从数组的形状中删除单维度条目,即把shape 中为1的维度去掉。
確定! 回上一頁