mirror of
https://github.com/pocketpy/pocketpy
synced 2026-05-06 18:23:38 +00:00
16 lines
321 B
Markdown
16 lines
321 B
Markdown
### `collections.Counter(iterable)`
|
|
|
|
Return a `dict` containing the counts of each element in `iterable`.
|
|
|
|
### `collections.deque`
|
|
|
|
A double-ended queue.
|
|
|
|
### `collections.defaultdict`
|
|
|
|
A dictionary that returns a default value when a key is not found.
|
|
|
|
#### Source code
|
|
|
|
:::code source="../../python/collections.py" :::
|