pocketpy/docs/modules/collections.md
2024-03-28 19:21:56 +08:00

17 lines
295 B
Markdown

---
icon: package
label: collections
---
### `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.