主页
Python
NumPy 数组排序
demo_numpy_array_sort1
运行 ❯
×
更改方向
保存代码
更改主题
import numpy as np arr = np.array([3, 2, 0, 1]) print(np.sort(arr))
[0 1 2 3]