我在哪里可以找到percentile函数背后的源代码numpy?我想检查一下.我搜索过谷歌,但还没有找到任何东西.
小智 13
要在您自己的系统上找到它,请尝试inspect:
import inspect
from numpy import percentile
inspect.getfile(percentile)
Run Code Online (Sandbox Code Playgroud)
随着ipython您可以通过将查看源代码??(两个问号)功能后,
from numpy import percentile
percentile??
Run Code Online (Sandbox Code Playgroud)