使用 np.repeat 。给定下部阵列,将其缩小到上部的最佳方法是什么? 最佳答案. 跨两个轴 Slice 并采用适当的步长- a[::2,::2] # 2 being stepsize here 样品运行-
確定! 回上一頁