查看python某个库存储路径

2018/09/22

方法

eg: os库是python的标准库, 要想知道他的存储路径

method:

import os
print(os.__file__)      # __file__就是os模块的文件名