codestyle.rst 1.07 KB
Newer Older
BO ZHANG's avatar
BO ZHANG committed
1
2
3
4
5
6
7
8
9
10
11
12
13
Numpydoc
========

More specifically,

- PEP 7 – Style Guide for C Code: https://peps.python.org/pep-0007/
- PEP 8 – Style Guide for Python Code: https://peps.python.org/pep-0008/



Numpydoc style, conf https://numpydoc.readthedocs.io/en/latest/format.html


BO ZHANG's avatar
BO ZHANG committed
14
15
Markup language
===============
BO ZHANG's avatar
BO ZHANG committed
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

标记语言(Markup language) 可以分为三类

    - 展示标记(Presentational markup)
        what you see is what you get
    - 步骤标记(Procedural markup)
        e.g., Markdown, TeX
    - 描述标记(Descriptive markup)
        e.g., LaTex, HTML, XML, ...

我们着重介绍两种在Python编程中被广泛运用的标记语言——Markdown和reStructured Text。

    1. Markdown
        Markdown可能是最轻量级的可用于层次化展示的标记语言,
        用户只需要学习为数不多的规则即可开始使用,
        并且在github等各种环境中均有插件支持。
        通常可以使用Markdown格式编写程序说明(`README.md`)
BO ZHANG's avatar
tweaks    
BO ZHANG committed
33
    2. reStructured Text
BO ZHANG's avatar
BO ZHANG committed
34
35
36
37
38
39



- reStructured Text
    https://www.writethedocs.org/guide/writing/reStructuredText/
-