使用包inspect

1 import inspect
2 from mxnet import contrib

 查看模块所在路径:

1 inspect.getsourcefile(contrib)

查看源码:

1 inspect.getsourcelines(contrib)