[Object Object] [Object Object] [Object Object] A single-line comment to begin with, for example: [Object Object] [Object Object] [object object]print 6 Output 6 [Object Object] [Object Object] [obj The note for ECT Object]python is a workaround only for single-line comments (with #). [Object Object] [Object Object] [Object Object] [Object Object] Multiline comment is used to enclose comment content, such as multiline comment multiple lines of comment are written on the file header: [Object Object] [Object Object] [Object Object] Although # This symbol represents a comment in Python, In fact, if you use Pydev or some other IDE to write the program, if the beginning does not declare the Save encoding format, will default to use ASCII code to save, then the code has a Chinese problem, even if your Chinese is in the comments.
This article is from the "Green Peak" blog, please make sure to keep this source http://zhuxianzhong.blog.51cto.com/157061/1604925
Comments in Python