码迷,mamicode.com
首页 > 编程语言 > 详细

python 查看源代码

时间:2019-09-24 12:29:10      阅读:80      评论:0      收藏:0      [点我收藏+]

标签:源代码   style   lin   lines   nes   inspect   路径   get   class   

使用包inspect

1 import inspect
2 from mxnet import contrib

 查看模块所在路径:

1 inspect.getsourcefile(contrib)

查看源码:

1 inspect.getsourcelines(contrib)

 

参考:https://zhuanlan.zhihu.com/p/37095163

python 查看源代码

标签:源代码   style   lin   lines   nes   inspect   路径   get   class   

原文地址:https://www.cnblogs.com/lxc1910/p/11577355.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!