Woody's Python learning note 1

Source: Internet
Author: User

Python is an explanatory language: This means that the process of compiling is omitted, similar to Php\perl.

Python is an interactive language: This means that you can execute your program in a Python prompt directly interacting with the execution.

Python is a Face object language: This means that Python supports object-oriented style or code encapsulation in object programming techniques.

Two ways of programming Python:

1, interactive programming;

Interactive programming does not require the creation of a script file and is encoded through the interactive mode of the Python interpreter.

2. Script-type programming.

Invoking the interpreter from the script parameter begins execution of the script until the script finishes executing. When the script finishes executing, the interpreter is no longer valid.

Python identifiers can contain letters, numbers, underscores, but cannot start with a number.

Identifiers that begin with an underscore have a special meaning, starting with a single underscore (_foo) represents a class property that cannot be accessed directly, needs to be accessed through the interface provided by the class, cannot be imported with the From XXX import *, and a double underscore (__foo) represents a tired private member ; a __foo__ that begins and ends with a double underscore represents a special method-specific identifier for Python, such as __init__ (), which represents the constructor of a class.

Identifiers in Python are case-sensitive.

Woody's Python learning note 1

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.