| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente |
| python:apprentissage [2017/11/06 22:22] – fberetta | python:apprentissage [2019/12/04 08:39] (Version actuelle) – [Cas particuliers / astuces] fberetta |
|---|
| * [[http://apprendre-python.com/page-apprendre-dictionnaire-python|Dictionnaires]] | * [[http://apprendre-python.com/page-apprendre-dictionnaire-python|Dictionnaires]] |
| |
| | ===== Contrôles de flux ===== |
| |
| | * [[http://apprendre-python.com/page-apprendre-conditions-structures-conditionnelles-if-else-python-cours-debutant|if/elif/else]] |
| | * [[http://apprendre-python.com/page-apprendre-boucles-python-loop|for/while]] |
| |
| | Voir également le tutoriel Python: [[https://docs.python.org/fr/3.6/tutorial/introduction.html#first-steps-towards-programming|while]] / [[https://docs.python.org/fr/3.6/tutorial/controlflow.html|if/for]] |
| | |
| | -> Projet [[python:projet_rois_presidents|: liste des rois de France et présidents de la République ]] |
| ===== Fonctions ===== | ===== Fonctions ===== |
| | |
| | * Une [[https://docs.python.org/fr/3.6/tutorial/controlflow.html#defining-functions|introduction]] |
| | * Une [[http://apprendre-python.com/page-apprendre-creer-fonction-en-python|autre introduction]] |
| | |
| | |
| | ===== Expressions régulières ===== |
| | |
| | Expressions régulières ou expressions rationnelles (regular expression ou RE ou regexp) |
| | |
| | * [[http://www.xavierdupre.fr/app/teachpyx/helpsphinx/c_regex/regex.html|Excellent tutoriel]] de Xavier Dupré |
| | * Un [[https://openclassrooms.com/courses/apprenez-a-programmer-en-python/les-expressions-regulieres|autre tutoriel]] |
| | * Documentation Python [[https://docs.python.org/fr/3.6/howto/regex.html#regex-howto|Regular Expression HOWTO]] |
| | * [[https://docs.python.org/fr/3.6/library/re.html|documentation de la syntaxe en Python 3.6]] |
| | |
| | |
| | Voire dans ce wiki la [[python:encodage_semantique_atom#chercher_remplacer_avec_expressions_regulieres_dans_atom|partie consacrée aux expressions régulières en utilisant le logicisl ATOM]]. |
| | |
| | |
| | ==== Cas particuliers / astuces ==== |
| | |
| | * [[https://stackoverflow.com/questions/406230/regular-expression-to-match-a-line-that-doesnt-contain-a-word|Regular expression to match a line that doesn't contain a word]] |
| | * [[https://stackoverflow.com/questions/2953039/regular-expression-for-a-string-containing-one-word-but-not-another|Regular expression for a string containing one word but not another]] |
| | |
| | |