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 Prochaine révision | Révision précédente | ||
| teaching:progappchim:collection_counter_exemple [2016/02/10 11:09] – villersd | teaching:progappchim:collection_counter_exemple [2021/01/18 11:49] (Version actuelle) – villersd | ||
|---|---|---|---|
| Ligne 2: | Ligne 2: | ||
| Module collections : | Module collections : | ||
| - | * [[https:// | + | * [[https:// |
| * [[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> |