Python: annotation
There are single-line comments and multi-line comments:
Single-line comments use the hash sign ‘#’ :
# -*- coding: UTF-8 -*-
# This is a one-line comment
Copy the code
Multi-line comments enclose comments with three single quotation marks or three double quotation marks
# -*- coding: UTF-8 -*-
This is a multi-line comment, enclosed in 3 single quotes.
""" This is also a multi-line comment, enclosed in three double quotation marks.
Copy the code
PyCharm shows the effect below:
Figure 1.1