Python Tour: Data type

Source: Internet
Author: User

A primer 1 What is data?

  x=10,10 is the data we want to store.

2 Why data is divided into different types

Data is used to represent States, and different States should be represented by different types of data.

3 Data Types

Numbers (shaping, long-shaped, floating-point, plural)

String

BYTE string: Describes the byte bytes type when introducing character encoding

List

Meta-group

Dictionary

Collection

4 Expand Data Type learning by following several points

  

# A: Basic use 1  use 2 definition way 3 common operation + built-in method # Two: summary of the type 1 save a value or save multiple values    Only one value can be stored    for multiple values, and the value can be what type 2 ordered or unordered 3 variable or immutable    !!! Variable: The value changes, the ID does not change. Variable = not hash    !!! Immutable: The value changes, and the ID is changed. Immutable = = can be hashed

Python Tour: Data type

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: 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.