NOTE_numpy np.ravel()
ravel将数组展开(deploy)后生成的是列向量
c_表示(expression)按行(row) combine
r_表示(expression)按列(column) combine
import numpy as np
a = np.array([[1, 2, 3], [3, 4, 9]])
print(a.ravel())
b = np.r_[a.ravel(), np.array([1, 2, 3, 4, 5, 6])]
print(b)
c = np.c_[a.ravel(), np.array([1, 2, 3, 4, 5, 6])]
print(c)
[1 2 3 3 4 9]
[1 2 3 3 4 9 1 2 3 4 5 6]
[[1 1]
[2 2]
[3 3]
[3 4]
[4 5]
[9 6]]