import inspect
print(inspect.getfile(func))
python 获取调用函数所在文件夹下的文件
最新推荐文章于 2024-07-12 16:16:27 发布
import inspect
print(inspect.getfile(func))