arr =np.array( [] ) · where arr is a 2D numpy array. · Now suppose you want to sort the nth row · rown = arr[n] · newrown = np.sort(rown) · You get the sorted array ...
確定! 回上一頁