有两个numpy阵列: >>> x = np.array([0,1,2,3]) >>> y = np.array([-1,1,-1,1]) 有没有函数可以创建 ... xb = numpy.repeat(x, 2)[:-1] yb = numpy.repeat(y, 2)[1:] ...
確定! 回上一頁