y = np.repeat(x, 2, axis=0) array([[1, 1, 2, 2, 3, 3], [4, 4, 5, 5, [60 ] Getting Started with NumPy Chapter 2 Creating an array by repeating elements.
確定! 回上一頁