2016-11-15 19 views

答えて

1

だけ配列を合計:

idxs = [1, 3] 
lists = [[1, 2, 3, 4], [1, 2, 3, 4], [1, 2, 3, 4]] 
ary = np.array(lists) 
counter = ary[:,idxs].sum() 
関連する問題