就像 perl 的 perldoc,c 的 man。
有python的吗?
最佳答案
通常,你应该使用documentation strings :
def foo(bar):
""" Applies the foo operation onto bar """
# ...
然后您可以使用 pydoc 生成 HTML(或其他输出格式)或 sphinx , 或者使用内置的 help
在事件对象上查看它们的功能。
内置模块的文档是available online ( also downloadable ) 或通过帮助
。
关于python - 有python的文档工具吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10751101/