lang:python:condition
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
lang:python:condition [2020/02/20 00:12] – Création avec "Condition classique" root | lang:python:condition [2020/03/06 21:31] (Version actuelle) – [[[unlikely]] et [[likely]]] : suppression root | ||
---|---|---|---|
Ligne 20: | Ligne 20: | ||
return 3 | return 3 | ||
</ | </ | ||
+ | |||
+ | ===Conditions multiples sur une même valeur=== | ||
+ | |||
+ | <code python> | ||
+ | if first in (' | ||
+ | print " | ||
+ | else: | ||
+ | print " | ||
+ | </ | ||
+ | |||
+ | ====switch==== | ||
+ | |||
+ | Le '' | ||
+ | |||
lang/python/condition.1582153930.txt.gz · Dernière modification : de root