Python Core Data types

Source: Internet
Author: User

All objects in 1.Python

There is no need to declare object types in 2.Python, the type of the object is determined by the running expression

3. The creation of an object means that an object-bound operation is made to this object, that is, only operations specific to that object can be invoked on an intrinsic object. For example, a string operation can only be used on a string object, and a list operation is used on a list object.

4.Python built-in data type:

(1) Number

Integer and Floating-point objects

Complex Number objects

Decimal:fixed-precision Objects

fraction:rational Number Objects

sets:collections with numeric operations

Booleans:true and False
built-in functions and modules:round, math, random, etc.
expressions; Unlimited integer precision; bitwise operations; Hex, octal, and binary
Formats
Third-party extensions:vectors, libraries, visualization, plotting, etc.

(2) Strings

(3) Lists

(4) Dictionaries

(5) Tuples

(6) Files

(7) Sets

(8) Other core types

(9) Program Unit Types

(10) implementation-related types

5. Built-in data type classification:

Immutable data type (cannot be changed once the object is created): Numbes,strings,tuples,byte

Variable data type: lists,dictionaries,bytearrays

Sequence Type: strings,lists

Mapping Type: Dictionaries

Python Core Data types

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.