The method of collection of the python code comments

First, the line of code comments

1, with a # are identified
using the number of single-line comment # statement code segment can be placed in front, code segments can be placed, or after a code for identifying Remarks
Example: Here Insert Picture Description
2, identified using %% #
exemplary :
Here Insert Picture Description

Second, the block code comments

1, double quotation marks "" "identified
Example:
" ","
block comment block comment
"," "
Here Insert Picture Description
2, the use of single quotation marks' '' identified
Example:
'' '
block comment block comment
' ''
Here Insert Picture Description

Released four original articles · won praise 1 · views 67

Guess you like

Origin blog.csdn.net/qq_30343275/article/details/103395888