y is the result of adding a new dimension to x , and the shape is no longer empty. y = array(x)[newaxis]show_array(y)array: [5] array.ndim: 1
確定! 回上一頁