zhaojiafu / zhaojiafu.github.io

我的第一个个人博客:我的csdn博客:https://blog.csdn.net/weixin_42081389
https://zhaojiafu.github.io
1 stars 0 forks source link

np.c_和np.r_ #11

Open zhaojiafu opened 4 years ago

zhaojiafu commented 4 years ago

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

qichenghan commented 4 years ago

为啥这个姑娘不会说话