python输出某个库的路径
import inspect def get_module_path(module_name): module = __import__(module_name) file_path = inspect.getfile(module) return file_path # 示例用法 module_path = get_module_path("os") print(module_path)
####################
QQ 3087438119