Python Code Annotation Specification

In the process of writing code, comments are still very important. It is best to have your own set of standards for a standardized Python code, so that others can read it clearly and clearly.

Line 1: Can run in Unix/Linux/Mac.

Line 2: UTF-8 encoding, # - * - coding: UTF-8-*-.

Line 4: Document comments, mostly in triple quotes.

Line 6: Some information, as follows.

__Author__=" Python< Mail; Example. com>"
__Status__=" Production
__Version __=" 0.0.1
__Date__=" 12 September 2019"

Lines 8-10: Import modules.

The rest are the content of the code body.

Related articles