a = np.zeros((2, 3, 4, 5)) # 这里运算其实是先把b扩展为shape为(2, 3, 4, ... 4) # after: shape -> (3, 4*2) # 对比np.tile(arr, 2) >>> np.repeat(arr, 2, axis=1) ...
確定! 回上一頁