【发布时间】:2018-07-08 13:09:35
【问题描述】:
我知道这听起来很愚蠢。
我正在寻找返回函数位置路径的 python 命令。很喜欢
command(np.reshape)
应该给出 np.reshape 所在文件夹的路径。我对找到整个 module(这里是 numpy)的主要位置不感兴趣,这已经被反复回答了。我需要函数本身的精确路径,就像 which 在 MATLAB 中做的那样。
【问题讨论】:
标签: python matlab function file path