initiation_a_python
Ceci est une ancienne révision du document !
Table des matières
Initiation à python
Python
Installation
Linux: c'est déjà installé Win$ et Mac: débrouillez-vous ?
Interpréteur
Je décide de bpython3
Quelques commandes
bpython version 0.16 on top of Python 3.5.3 /usr/bin/python3 >>> 1 1 >>> 3.14 3.14 >>> 1+2 3 >>> labomedia Traceback (most recent call last): File "<input>", line 1, in <module> labomedia NameError: name 'labomedia' is not defined >>> "Labomedia" 'Labomedia' >>>
int float string opération
Variable
>>> a=1 >>> b=2 >>> a+b 3
Mots clé
and as class def elif else except False for from global if import in lambda None not or pass return True try while with
Type de données
1 # int 3.14 # float "Labbomedia" # str [1, 2, 3] # list {"1": "tot", "2": 1} # dict
Fonction
Condition
Opérateur
Boolean
boucle
Itération
Fonctions
Return
Module
Module get_object
Package
Exception
Pass
initiation_a_python.1530708572.txt.gz · Dernière modification : 2018/07/04 12:49 de serge