Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
python:apprentissage [2017/10/24 09:19] Francesco Beretta créée |
python:apprentissage [2019/12/04 08:39] (Version actuelle) Francesco Beretta [Cas particuliers / astuces] |
||
---|---|---|---|
Ligne 4: | Ligne 4: | ||
===== Valeurs et opérateurs ===== | ===== Valeurs et opérateurs ===== | ||
+ | [[https://docs.python.org/fr/3.6/tutorial/introduction.html#using-python-as-a-calculator|Python comme calculette]] | ||
- | ===== Variables ===== | ||
+ | ===== Variables, listes, dictionnaires ===== | ||
+ | * [[http://apprendre-python.com/page-apprendre-variables-debutant-python|Variables]] | ||
+ | * [[http://apprendre-python.com/page-apprendre-listes-list-tableaux-tableaux-liste-array-python-cours-debutant|Listes]] – [[http://apprendre-python.com/page-apprendre-tuples-tuple-python|Tuples]] | ||
+ | * [[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]] | ||
+ | |||
+ |