Update p12_determine_most_freqently_items_in_seq.rst
correct spell mistake
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
解决方案
|
||||
----------
|
||||
``collections.Counter`` 类就是专门为这类问题而设计的,
|
||||
它甚至有一个有用的 ``monst_common()`` 方法直接给了你答案。
|
||||
它甚至有一个有用的 ``most_common()`` 方法直接给了你答案。
|
||||
|
||||
为了演示,先假设你有一个单词列表并且想找出哪个单词出现频率最高。你可以这样做:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user