全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Docstring?

Definition 1.3 High School Computer Science · 第 1 章 — Specifications, Assertions and Tests

A docstring (documentation string) is a string written as the first statement of a function’s body. Python keeps it with the function, and help(f) prints it. In this book a docstring states the function’s specification.

在原文中阅读 →