会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
西北逍遥
每一个不能早起的日子,都是对生命的浪费!
博客园
首页
新随笔
联系
订阅
管理
2023年12月28日
python输出某个库的路径
摘要: import inspect def get_module_path(module_name): module = __import__(module_name) file_path = inspect.getfile(module) return file_path # 示例用法 module_p
阅读全文
posted @ 2023-12-28 22:13 西北逍遥
阅读(31)
评论(0)
推荐(0)
编辑
公告