Open zhaojiafu opened 4 years ago
https://zhaojiafu.github.io/2019/12/02/a6411e19977dd76bfc98c4f632a869bf/
为啥这个姑娘不会说话
https://zhaojiafu.github.io/2019/12/02/a6411e19977dd76bfc98c4f632a869bf/
demo import numpy as np a = np.array([1, 2, 3]) b = np.array([4, 5, 6]) c = np.c[a,b] print(np.r[a,b]) print(c) print(np.c_[b,c])结果 [1 2 3 4 5 6] [[1 4] [2 5] [3 6]] [[4 1 4] [5 2