注释

  1. 单行注释
  2. 多行注释
  3. 语句注释
  1. # This is a Single line annotation
  2. print('Hello World') #Simple annotation
  3. """
  4. If an annotation added after the statements
  5. Then this annotation must be short and simple.
  6. Otherwise it must be annoted after newline
  7. """
  8. '''
  9. This is also a multannotation
  10. Ctrl + / can be create a annotation quickly
  11. Single Line annotation an be explain single statement
  12. Multannotation can describe a code block.
  13. '''

单行注释可以对一个语句进行注释

多行注释可以解释一个代码块

语句注释必须清晰且简短