Learn python python data type in brother

Source: Internet
Author: User
Tags set set

There are countless kinds of data content that can be customized in Python, but there are six types of system default standards:

First, Number type

Divided into four categories:

int integral type

float Float Type

BOOL Boolean type

string literal type

The string type is the type of text enclosed in quotation marks:

Each quotation mark can contain other two-way quotes. You can also use escape characters in a way that

Note:

Escape characters:

Complex plural type

Second, list type

A list is a set of sequential data combinations that can be modified. The identification symbol for the list is []

Example: List1 = [1,3,4,5,8]

Iii. type of tuple primitive

Ganso is a set of sequential data, similar to a list, but cannot be modified. The identifier for the Ganso is ()

Example: Tule = (3,5,7,98,90)

Iv. Set Set type

A collection is a set of data that is not ordered, and all data is unique and not duplicated. No glyphs

V. Dict dictionary Type

A dictionary is a set of data that can be modified without order, and the data is in the form of a key-value pair. The glyph is {}

Learn python python data type in brother

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.