Shortcuts

欢迎来到 docs-example 的中文文档!

介绍

安装

环境依赖

安装 docs-example

验证

如何说 hello

>>> from docs_example.example1 import say_hello
>>> say_hello()
hello

如何说 hi

>>> from docs_example.example1 import say_hi
>>> say_hi()
hi

Sphinx 拓展

mermaid

| https://sphinxcontrib-mermaid-demo.readthedocs.io/en/latest/

sequenceDiagram participant Alice participant Bob Alice->John: Hello John, how are you? loop Healthcheck John->John: Fight against hypochondria end Note right of John: Rational thoughts <br/>prevail... John-->Alice: Great! John->Bob: How about you? Bob-->John: Jolly good!

docs_example.example1

docs_example.example1.say_hello(n: int = 1)[源代码]

Print hello n times to terminal.

参数

n (int) -- Print hello n times to terminal.

docs_example.example2

docs_example.example2.say_hi(n: int = 1)[源代码]

Print hi n times to terminal.

参数

n (int) -- Print hi n times to terminal.

docs_example.style_guide

ExampleClass

The summary line for a class docstring should fit on one line.

example_generator

Generators have a Yields section instead of a Returns section.

module_level_function

This is an example of a module level function.

Indices and tables


© Copyright 2021, docs-example contributors. Revision 2f07fd4c.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.