python basis - Notes

The central role comment

Enhance the readability of the code

Note 2 forms python

Single-line comments

 #

Multi-line comments

Note three single quotes
  '' 'content' '' placed in a class or function may help () __doc__ recall

Note more than three marks
  "" "content" "" put in a class or function may help () __doc__ recall

ps: Fast play mode in pycharm press' 5 continuously pressing the "Continuous 5

Add comments principle

 Not all annotated, need only feel important or difficult to understand part of the footnote to
& emsp: Comments can either Chinese or English, but do not use Pinyin

Guess you like

Origin www.cnblogs.com/suren-apan/p/11374638.html