go top

docstring

  • n. 文档字符串:在编程语言(如Python)中,用于描述函数、类或模块功能的字符串。通常位于定义的开头,用三引号括起来。

网络释义英英释义

  文档字符串

最后,剩下的那几行是这个函数的文档字符串doc string),当然,如果在函数定义中包含了它们的话。

基于87个网页-相关网页

  文档化函数

文档化函数(doc string):通常用于提供文档信息,函数的说明.当你在IDE中运行函数名时,将显示doc string.

基于24个网页-相关网页

Docstring

  • abstract: In programming, a docstring is a string literal specified in source code that is used, like a comment, to document a specific segment of code. Unlike conventional source code comments, or even specifically formatted comments like Javadoc documentation, docstrings are not stripped from the source tree when it is parsed, but are retained throughout the runtime of the program.

以上来源于: WordNet

双语例句

  • The doc string is again used for documentation.

    文档字符串依然作为文档使用的。

    youdao

  • Note that Zope uses an odd convention to determine which methods are accessible via the Web -- if a method has a doc string, it is Web accessible; otherwise, it's considered private.

    注意 Zope 采用奇怪约定确定哪些方法可以通过 Web 访问如果方法包含一个 doc 字符串,那么该方法可通过 Web 访问;否则被认为是私有的。

    youdao

  • The response will return a simple JSON doc rather than a simple text string.

    响应返回简单JSON文档不是一个简单的文本字符串。

    youdao

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

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

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