一片2x2 的吐司 matrix = np.array([5, 5, 6, 6]).reshape(2, 2) print(matrix) print(matrix.ndim) ... 運用 np.dot() 可以進行向量內積與矩陣相乘。
確定! 回上一頁