Update p12_determine_most_freqently_items_in_seq.rst
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
----------
|
||||
讨论
|
||||
----------
|
||||
作为输入, ``Counter`` 对象可以接受任意的 ``hashable`` 序列对象。
|
||||
作为输入, ``Counter`` 对象可以接受任意的由可哈希(``hashable``)元素构成的序列对象。
|
||||
在底层实现上,一个 ``Counter`` 对象就是一个字典,将元素映射到它出现的次数上。比如:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
Reference in New Issue
Block a user