1.Comment
Annotations are an important part of a programming language, and they are used to parse the meaning of the program you have written.
The role of annotations.
In commercial projects, multiple people collaborate in development, so that others can check their own **.
Improve your readability and development efficiency in subsequent project iterations.
Note: Comments in python are not executed by python's parser.
2.Tracking number annotation
Beginning with , you can comment out the content of an entire line that starts with .
Single-line comments begin with print("Hello, Tengfei Open Source, I am a one-line comment, with a number")
3.Multi-line comments
It is usually used to add multiple lines of descriptive content, and quotation marks include single quotation marks and double quotation marks.
Syntax:'''Annotation text''' """Annotation text"""
'''This is a multi-line comment, with three single quotes this is a multi-line comment, with three single quotes this is a multi-line comment, with three single quotes'''print("Hello, Tengfei Open Source, I am a multi-line comment, with three single quotes")"""This is a multi-line comment with three double quotesThis is a multi-line comment with three double quotes"""print("Hello, Ascendas Open Source, I'm a multi-line comment, with three double quotes")
Multi-line comments can be used nested, but single-line comments cannot be used nested.