mirror of
				https://github.com/pocketpy/pocketpy
				synced 2025-10-26 06:20:16 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			333 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			333 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 `dict` wrapper that calls a factory function to supply missing values.
 | |
| It is not a subclass of `dict`. |