numpy中stack、vstack、hstack、np.newaxis、concatenate
这谁记得住!
# Created by Xky at 2019/12/17
import numpy as np
a = np.array([1, 2])
b = np.array([3, 4])
c = np.array([5, 6])
print(a, b, c)
print(a.shape)
d = np.stack([a, b], axis=1)
print(d, d.shape)
e...
原创
2019-12-17 22:24:39 ·
242 阅读 ·
0 评论