This extension allows you to test snippets in the documentation in a natural way. It works by collecting specially-marked up code blocks and running them as doctest tests. When building the docs with ...
import doctest doctest. testmod () It's same code like docstring example but I add example and doctest at last line of the code. In order to test the docstring just run the file python my_math.py. If ...
Unele rezultate au fost ascunse, deoarece pot fi inaccesibile pentru dvs.
Afișați rezultatele inaccesibile