Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Docstring » ?

Definition 1.3 High School Computer Science · Chapitre 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.

Lire dans le chapitre →