Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente | |||
teaching:progappchim:collection_counter_exemple [2016/11/29 12:03] – villersd | teaching:progappchim:collection_counter_exemple [2021/01/18 11:49] (Version actuelle) – villersd | ||
---|---|---|---|
Ligne 5: | Ligne 5: | ||
* [[https:// | * [[https:// | ||
- | <sxh python; title : cherche_wang.py> | + | <code python cherche_wang.py> |
# | # | ||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
Ligne 25: | Ligne 25: | ||
print [c for c in collections.Counter(names).most_common() | print [c for c in collections.Counter(names).most_common() | ||
- | </sxh> | + | </code> |