For Python beginners. You may be confused if you don't know the general term of the programming language Collection. I corresponded to that, so I will write about it.
Quote: https://en.wikipedia.org/wiki/Collection_(abstract_data_type)
In computer science, a collection or container is a grouping of some variable number of data items (possibly zero) that have some shared significance to the problem being solved and need to be operated upon together in some controlled fashion. Generally, the data items will be of the same type or, in languages supporting inheritance, derived from some common ancestor type. A collection is a concept applicable to abstract data types, and does not prescribe a specific implementation as a concrete data structure, though often there is a conventional choice (see Container for type theory discussion).
Examples of collections include lists, sets, multisets, trees and graphs.
In this sense, ** collection ** is not very familiar with Japanese. I see ** containers ** relatively.
If you search in the python collection, By all means
https://docs.python.org/ja/3/library/collections.html
Etc.,
collections --- container data type
It is drawn into the ** collections module ** of.
The explanation is
This module implements a special container data type that replaces the generic Python built-in containers dict, list, set, and tuple.
Something, as if dict, list, set You can read it as if it weren't a collection. .. .. This area is a typical example of a collection in ** programming terms. ** **
Nothing in particular. Just information sharing. I was a little misunderstood. If you have any comments, please let us know.
Recommended Posts