PYTHON - Bibliothèque
L'ajout de bibliothèque se fait à l'aide d'une ligne de commande.
Exemple :
1
from math import * # permet d'importer l'intégralité de la bibliothèque « math »
2
3
from random import randint # permet d'importer la fonction randint
4
# (tirage aléatoire d'un nombre 5
# entier) depuis la bibliothèque « random ».6





