atelier_python_niveau_1
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteDernière révisionLes deux révisions suivantes | ||
atelier_python_niveau_1 [2018/09/04 06:11] – [Initiation à python] serge | atelier_python_niveau_1 [2021/04/16 10:26] – [Introduction] serge | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | <WRAP center round important 60%> | ||
- | Ma règle n° 1: **Ici python 3 seulement, python 2 est interdit** | ||
- | </ | ||
- | |||
======Python: | ======Python: | ||
- | Cet atelier est animé comme un TD. Aucun cours théorique, que de la pratique avec des exemples fun 8-) | ||
- | Et surtout je ne commence pas par **Chapitre 1 ** POO Programation Orienté Objet. | ||
- | Le support de TD: **[[initiation_a_python|Initiation à python]]**. | ||
- | =====Des outils pratiques===== | ||
- | ====Editeurs==== | ||
- | ===Geany: un éditeur sympa multiplateforme=== | ||
- | * [[https:// | ||
- | * [[https:// | ||
- | ====Tester en console==== | ||
- | ===IDDLE=== | ||
- | IDLE is Python’s Integrated Development and Learning Environment. | ||
- | sudo apt-get install idle-python3.5 | + | =====Des outils pratiques===== |
- | ===bpython=== | + | |
- | Avec la coloration syntaxique et l' | + | |
- | * [[https:// | ||
- | * [[https:// | ||
- | sudo apt-get install bpython3 | ||
- | | ||
- | ===Un terminal quelconque=== | ||
- | Ouvrir un terminal: | ||
- | toto@PC01: | ||
- | Python 3.5.3 (default, Jan 19 2017, 14:11:04) | + | =====Recherche web===== |
- | [GCC 6.3.0 20170118] on linux | + | |
- | Type " | + | |
- | >>> | + | |
- | + | ||
- | =====Documentation===== | + | |
- | ====Recherche web==== | + | |
Dans un moteur de recherche, toujours en anglais, par exemple: | Dans un moteur de recherche, toujours en anglais, par exemple: | ||
python3 download web page | python3 download web page | ||
Une grande majorité des réponses sera sur **[[https:// | Une grande majorité des réponses sera sur **[[https:// | ||
- | |||
- | ====Des tutos==== | ||
- | ===apprendre-python.com=== | ||
- | * [[http:// | ||
- | |||
- | ===Sam & Max=== | ||
- | * [[http:// | ||
- | |||
- | ===En anglais=== | ||
- | * [[https:// | ||
- | * [[http:// | ||
- | |||
- | ====Bibliographie==== | ||
- | Les incontournables: | ||
- | ===Apprendre à programmer avec Python 3 de Gérard Swinnen=== | ||
- | En pdf et en livre, le livre contient en plus les corrections des excercices. | ||
- | * [[https:// | ||
- | * [[http:// | ||
- | |||
- | ===Au coeur de Python, version 2.5 de Wesley J. Chun=== | ||
- | Volume 1 et 2, en français, bien écrit, bien traduit. | ||
- | |||
- | Indisponible mais existe en occasion ou à la BU: | ||
- | * [[https:// | ||
- | * [[https:// | ||
=====Indentation===== | =====Indentation===== | ||
Ligne 78: | Ligne 23: | ||
Voir la page [[Scripts python dans le Blender Game Engine]] | Voir la page [[Scripts python dans le Blender Game Engine]] | ||
- | =====Le script python | + | =====Le script python |
- | <code python> | + | * [[le_script_python_parfait|]] |
- | # | + | |
- | # -*- coding: UTF-8 -*- | + | |
- | + | ||
- | def main(): | + | |
- | print(" | + | |
- | + | ||
- | if __name__ == ' | + | |
- | main() | + | |
- | </ | + | |
=====Initiation à python===== | =====Initiation à python===== | ||
Destinée aux personnes sans base de programmation **[[initiation_a_python|Initiation à python]]**. | Destinée aux personnes sans base de programmation **[[initiation_a_python|Initiation à python]]**. | ||
- | {{tag> | + | {{tag> |