Comments in Python

Source: Internet
Author: User
[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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.