teaching:progappchim:presentation_principes

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
teaching:progappchim:presentation_principes [2017/02/16 14:57] villersdteaching:progappchim:presentation_principes [2023/02/21 14:56] (Version actuelle) villersd
Ligne 32: Ligne 32:
 <WRAP group> <WRAP group>
 <WRAP half column> <WRAP half column>
-<diagram+<flowchartjs default
-| AAA | |AAA{border-color:black;background-color:lightblue}=Code source +  box1=>operation: Code source 
-| |!@4| | AB |AB{border-color:white}=Compilation +  → Compilation 
-| BBB | | | | | | | | | | |BBB{border-color:black;background-color:lightblue}=Code objet +  box2=>operation: Code objet 
-| |!@4| | BC |BC{border-color:white}=Exécution +  → Exécution 
-| CCC | | | | | | | | | | |CCC{border-color:black;background-color:lightblue}=Résultat +  box3=>operationRésultat 
-</diagram>+   
 +  box1->box2->box3 
 +</flowchartjs>
 </WRAP> </WRAP>
 <WRAP half column> <WRAP half column>
Ligne 50: Ligne 52:
 <WRAP group> <WRAP group>
 <WRAP half column> <WRAP half column>
-<diagram+<flowchartjs default
-| AAA | |AAA{border-color:black;background-color:lightblue}=Code source +  box1=>operation: Code source 
-| |!@4| | AB |AB{border-color:white}=Interprétation +  → Interprétation 
-| BBB | | | | | | | | | | |BBB{border-color:black;background-color:lightblue}=Résultat +  box2=>operationRésultat 
-</diagram>+   
 +  box1->box2 
 +</flowchartjs>
 </WRAP> </WRAP>
 <WRAP half column> <WRAP half column>
Ligne 69: Ligne 73:
 <WRAP group> <WRAP group>
 <WRAP half column> <WRAP half column>
-<diagram+<flowchartjs default
-| AAA | |AAA{border-color:black;background-color:lightblue}=Code source Python (.py, .py3+  box1=>operation: Code source Python (.py) 
-| |!@4| | AB |AB{border-color:white}=Compilation +  → Compilation 
-| BBB | | | | | | | | | | |BBB{border-color:black;background-color:lightblue}=Python Bytecode (.pyc) +  box2=>operation: Python Bytecode (.pyc) 
-| |!@4| | BC |BC{border-color:white}=Interprétation +  → Interprétation 
-| CCC | | | | | | | | | | |CCC{border-color:black;background-color:lightblue}=Résultat +  box3=>operationRésultat 
-</diagram>+   
 +  box1->box2->box3 
 +</flowchartjs>
 </WRAP> </WRAP>
 <WRAP half column> <WRAP half column>
Ligne 156: Ligne 162:
 >>> >>>
 </code> </code>
-  * Commandes : copyrigth, credits, license(), quit, help, help(),...+  * Commandes : copyright, credits, license(), quit, help, help(),...
  
 ==== Notion de variable ==== ==== Notion de variable ====
Ligne 165: Ligne 171:
 >>> V=24*L >>> V=24*L
 >>> n=1 >>> n=1
->>> zero=273.16+>>> zero=273.15
 >>> T=20+zero >>> T=20+zero
 >>> P=n*R*T/V >>> P=n*R*T/V
Ligne 253: Ligne 259:
 >>> b="bonjour" >>> b="bonjour"
 >>> c=’Bonjour’ >>> c=’Bonjour’
->>> print a==b,a==c+>>> print(a==b,a==c)
 True False True False
 >>> d="pâté123#" >>> d="pâté123#"
Ligne 273: Ligne 279:
 ==== Opérations sur les chaînes ==== ==== Opérations sur les chaînes ====
 <code> <code>
->>> s=Mons, le 15 septembre 2009+>>> s='Mons, le 15 septembre 2009'  
 >>> s[8:] >>> s[8:]
-’ 15 septembre 2009 +15 septembre 2009' 
->>> s.find(le)+>>> s.find('le')
 6 6
 >>> s.split() >>> s.split()
-[Mons,le15septembre2009]+['Mons,''le''15''septembre''2009']
 >>> s.upper() >>> s.upper()
-MONS, LE 15 SEPTEMBRE 2009+'MONS, LE 15 SEPTEMBRE 2009'
 >>> s.replace(’ ’,’_’) >>> s.replace(’ ’,’_’)
-Mons,_le_15_septembre_2009+'Mons,_le_15_septembre_2009'
 >>> >>>
 </code> </code>
Ligne 472: Ligne 478:
 for i in a: for i in a:
     for j in a:     for j in a:
-        print(i*j,)+        print(i*j, end = ' ')
     print(' sont multiples de ',i)     print(' sont multiples de ',i)
 </code> </code>
Ligne 553: Ligne 559:
   * des procédures de tests   * des procédures de tests
   * la génération de documentation sous différentes formes   * la génération de documentation sous différentes formes
 +  * la possibilité d'utiliser des versions spécifiques de librairies
   * ...   * ...
  
Ligne 638: Ligne 645:
  
 ==== Tkinter : animation ==== ==== Tkinter : animation ====
-<code python>+<code python anima_auto_rebond.py>
 #! /usr/bin/env python #! /usr/bin/env python
 # -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
Ligne 700: Ligne 707:
 ==== tkinter : tkDemo, demonstration of Tk widgets ==== ==== tkinter : tkDemo, demonstration of Tk widgets ====
  
-FIXME : ? version python 3 ?+FIXME : ? tkdemo était proposé pour la branche 2 de Python. Rechercher pour la version python 3 ? 
 + 
 +Voir par exemple [[https://github.com/daleathan/widget-tour-py3|ce lien]] 
  
 ==== Graphiques simples avec matplotlib ==== ==== Graphiques simples avec matplotlib ====
  • teaching/progappchim/presentation_principes.1487253456.txt.gz
  • Dernière modification : 2017/02/16 14:57
  • de villersd