One, single-line comment symbol
# used as a single-line comment symbol.
Print 1 #输出1
Two, multi-line comment symbol
Multiline comments are enclosed in three quotation marks "".
‘‘‘
Used to parse all pages saved from a Web page (HTML)
Used to parse all pages saved from a Web page (HTML)
‘‘‘
Three, Chinese annotation method
When writing code in Python, you will not be able to avoid appearing or using Chinese, and you will need to add Chinese comments at the beginning of the file. If the beginning does not declare the format of the saved encoding, then it will default to use the Askii code to save the file, if you have Chinese in your code will be wrong, even if your Chinese is included in the comment. So it's important to add Chinese notes. Must be placed on the first line
#-*-Coding=utf-8-*-
Pyhton of single line, multiline annotation notation and its specification