docstrings

docstrings

 英

  • 网络文档字符串;文档注释;文件字串

例句

it's good practice to include docstrings in code that you write, so make a habit of it.

编写代码加入文档字符串做法因此养成编写文档字符串习惯

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

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

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

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

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

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

If you follow the standard Python coding conventions using Docstrings, you will automatically have a solid foundation for documentation.

如果通过使用Docstring遵守标准Python代码约定生成文档建立牢固基础

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

它们出现Python代码docstring比如第二个示例),它们称为doctest