pocketpy/docs/modules/collections.md
blueloveTH 12210636ef ...
2023-06-05 13:03:55 +08:00

333 B

icon label
package collections

collections.Counter(iterable)

Return a dict containing the counts of each element in iterable.

collections.deque

A double-ended queue.

collections.defaultdict

A dict wrapper that calls a factory function to supply missing values. It is not a subclass of dict.