numpy 花式索引,ix_

#coding:utf-8 import numpy as np b=np.arange(12).reshape(3,4) print(b.flat) for i in b.flat: print(i) f=b.flat b.flat=7 print(b) a=[1,2,3] b=[4,5,6] c=(a,b) print(np.ix_(a,b)) f=np.arange(12)
相關文章
相關標籤/搜索