引入: 学习Python的NumPy科学计算类库的时候遇到计算百分位数,使用NumPy实现的代码很简单,直接调用就行,如下所示: import numpy as np a = np.array([[1,2,3], [4,5,6],<