import inspect
from scipy import signal
# 获取signal.filtfilt函数源码所在文件的位置
filename = inspect.getsourcefile(signal.filtfilt)
print(filename)
>>>D:\install\Anaconda\lib\site-packages\scipy\signal\signaltools.py
# 获取signal.filtfilt函数源码
print(inspect.getsource(signal.filtfilt))
# 获取函数说明
help(signal.filtfilt)
08-31
623
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-03
749
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)