diff --git a/Scripting/Python/Manip-donnees.html b/Scripting/Python/Manip-donnees.html index f0dff18..d1ca9d8 100644 --- a/Scripting/Python/Manip-donnees.html +++ b/Scripting/Python/Manip-donnees.html @@ -2,7 +2,7 @@ title: Python - Manipulation des données description: published: true -date: 2021-11-17T10:26:44.628Z +date: 2021-11-17T10:28:57.180Z tags: editor: ckeditor dateCreated: 2021-06-07T08:01:47.026Z @@ -130,7 +130,7 @@ Modeles de citadine : C3

On importe ce fichier et le convertit en dictionnaire :

import json
 
-with open('voitures.json') as file:   #Fonctionne pour tout type de fichier.
+with open('voitures.json') as file:   #On ouvre le fichier "voitures.json" en tant que variable "file"
     data = json.load(file)     #On attribue le contenu du fichier au dictionnaire "data"
 
 >>> data