📜  python代码示例中的向量

📅  最后修改于: 2022-03-11 14:45:38.803000             🧑  作者: Mango

代码示例1
# Load library
import numpy as np

# Create a vector as a row
vector_row = np.array([1, 2, 3])

# Create a vector as a column
vector_column = np.array([[1],
                          [2],
                          [3]])