Notes for Python

Three types of comments:
single-line comments: start with #
Multi-line comments: a pair of triple quotation marks, which can be three single quotation marks or three double quotation marks, which is actually a string, but not assigned to any variable. Declare Chinese
encoded Method: Add a Chinese statement comment at the beginning of the file to specify the encoding format of the source file, such as: #coding:gbk, this line should be written at the top of the Python source file.

The default encoding for Python source files is UTF-8

Guess you like

Origin blog.csdn.net/chengkai730/article/details/132199314