Python data type, python data type conversion

Source: Internet
Author: User

Python data type, python data type conversion

Python has the following five standard data types:

1. Number

Both the floating point type and integer type are collectively referred to as the numerical type in Python.

2. String

Both one character and multiple characters are character strings in Python and can be identified by single quotation marks or double quotation marks.

3. List

The list is equivalent to an array in C and readable and writable.

4. tuples

Tuples are also equivalent to arrays in C, but the difference between them and the list is that the tuples are "readable and not writable ".

5. Dictionary

It can be understood as an index, which has different "keys" to operate different "values ".

 

Python can also be considered as nine data types:

 

1. Integer

2. Floating Point Type

3. Number

4. String

5. List

6. tuples

7. Dictionary

8. Date

9. Boolean

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.