虽然scipy的文档指出,scipy.interpolate.UnivariateSpline可以运行在k<=5的顺序上,但在底层有一个额外的限制,即顺序>=1。有没有人知道如何使用Numpy/Scipy实现0阶样条或分段常数插值?