「自分のために役に立つメモシステム」は、検索やカテゴリ分けしやすいように「#〜〜〜vv」とタグから始まります。このタグですが、各タグごとにその個数で一覧表示できるといいですよね。 それが、「python」の「collections.Counter」でできちゃうんです。
collections モジュールのCounter型を使って、listの要素を種類ごとに数も集計する。
A counter is a container that stores elements as dictionary keys, and their counts are stored as dictionary values. Raghu is a shoe shop owner. His shop has X number of shoes. He has a list containing ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する