Home  >  Article  >  Backend Development  >  What are the three categories of combined data types in python?

What are the three categories of combined data types in python?

王林
王林Original
2020-06-09 11:04:5315794browse

What are the three categories of combined data types in python?

According to the relationship between data, combined data types can be divided into three categories: sequence type, set type and mapping type. Combined data types can better organize multiple similar or different types, making the data more orderly and easier through a single representation.

The sequence type is a vector of elements. There is a sequential relationship between the elements. They are accessed through serial numbers, and the elements are not exclusive.

The set type is an element type, the elements are unordered, and the same elements only exist in the set.

The mapping type is a combination of "key-value" data items. Each element is a key-value pair, expressed as (key, value).

Recommended tutorial: python tutorial

The above is the detailed content of What are the three categories of combined data types in python?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn