Basic knowledge of Python

Source: Internet
Author: User

In interactive mode, the recommended use of Ipython, design is very user-friendly, automatic completion of the function is my favorite.

Installation: Apt-get Install Ipython

Editor I'm using Vim.

Python identifier:

Identifiers include numbers, characters, underscores, but cannot start with a number and are differentiated to lowercase.

Identifiers that begin with an underscore are of special significance.

A class attribute that begins with a single underscore (_foo) cannot be accessed directly, and is accessed through the interface provided by the class and cannot be imported with "from XXX import *";

A double underscore (__foo) represents a private member of a class; a double underscore (__foo__) represents a special method-specific identifier for Python, such as __init__ (), which represents the constructor of a class.

Quotation marks for Python:

The quotation marks used by Python include single quotation marks (' '), double quotation marks (""), and three quotation marks ("")

where single and double quotes differ little, and three quotes represent multiple lines of reference, and are often used as annotations

Basic knowledge of 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: 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.