• Docstrings explain how to use code, and are for the users of your code.

    文档说明用来解释代码如何工作,是写给读代码的人看的。

    youdao

  • The main element of good Python documentation is the use of so-called "docstrings."

    Python文档之所以“优秀主要因素使用所谓docstring”。

    youdao

  • First, much of the work done by a concrete class is specified in the docstrings of methods.

    首先具体完成大部分工作方法的文档字符串(docstring)中指定

    youdao

  • When they occur inside of docstrings inside of Python source code, like in the second example, they are called doctests.

    它们出现python源代码中的docstring中时(比如第二示例),它们就称为doctest。

    youdao

  • The docstrings processed by doctest can contain tracebacks within them, but a better approach to special cases is to utilize unittest.

    doctest 处理的文档字符串可能会在其内部包含回溯(traceback),但是特别情况下更好方法使用unittest

    youdao

  • There are tools which use docstrings to automatically produce online or printed documentation, or to let the user interactively browse through code;

    有些文档字符串工具可以在线处理打印文档,或用户交互浏览代码

    youdao

  • Choosing — doctest-tests is the least intrusive option, and simply asks nose to watch out for doctests in the docstrings of the test modules that it is already examining.

    doctest -tests干扰最小选项要求nose已经检查测试模块docstring中寻找doctest

    youdao

  • Choosing — doctest-tests is the least intrusive option, and simply asks nose to watch out for doctests in the docstrings of the test modules that it is already examining.

    doctest -tests干扰最小选项要求nose已经检查测试模块docstring中寻找doctest

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定