Quantcast
Channel: CodeSection,代码区,Python开发技术文章_教程 - CodeSec
Viewing all articles
Browse latest Browse all 9596

如何编写 Python 文档生成器【已翻译10%】

$
0
0
如何编写 python 文档生成器【已翻译10%】

昨天来源:开源中国

在我刚开始接触Python的日子里,我最喜欢做的事情之一是坐在解释器旁使用内置help功能来检查类和方法,决定下一个要敲的内容。这个功能导入一个对象,遍布它的成员,取出文档注释,生成一个类似manpage的输出,从而帮助你找到如何使用正在检查的对象的方法。


Viewing all articles
Browse latest Browse all 9596

Trending Articles