Avatar ·

Comment convertir une liste de listes en une liste de nombres (Python)

📁 Sujets avancés sur Python

On a :

[[1], [2], [3]]

besoin de :

[1, 2, 3]
Avatar ·

Utilisez pip3 ou python3 -m pip pour exécuter pip pour Python 3

$ pip3 --versionpip 9.0.1 from /home/r033/.local/lib/python3.5/site-packages (python 3.5)$ python3 -m pip --versionpip 9.0.1 from /home/r033/.local/lib/python3.5/site-packages (python 3.5)

Les bibliothèques peuvent également être installées via les dépôts Ubuntu, si elles y sont disponibles.

sudo apt install python3-scipy

Connectez-vous pour laisser une réponse

Blogs