Per default, it sorts the values in ascending order, so np.sort([42, 2, 21]) returns the NumPy array [2 21 42] . Here's an example of 1D sorting:.
確定! 回上一頁