Python Core Programming Notes-Miscellaneous

Source: Internet
Author: User

    1. The Python statement adds a newline character to each line by default, as long as you add a comma at the end to change the behavior
    2. Automatically returns the None object if no return is in the function
    3. PEP (Python Enhancement proposal abbreviated) Http://python.org/dev/peps
    4. Dir () Displays the object properties and, if there are no parameters, displays the names of the global variables
    5. Help () displays the document string without parameters entering interactive mode
    6. Type () returns the object types, and the return value itself is a type object
    7. Enter values with input () instead of raw_input ()
    8. When a module is too large to drive too many features, you should consider splitting some code out of the foreign key to another module
    9. Indent Four space widths
    10. Python does not support overloaded operators

Python core Programming notes-miscellaneous

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.