diff --git a/_posts/2017-01-22-json.md b/_posts/2017-01-22-json.md index a442afe..ac3e9e8 100644 --- a/_posts/2017-01-22-json.md +++ b/_posts/2017-01-22-json.md @@ -105,6 +105,7 @@ while True: livre['titre'] = input("titre > ") livre['auteur'] = input("auteur > ") livre['edition'] = input("edition > ") + bibliotheque.append(livre) ``` On devrait alors modifier les parties conversions des fonctions charger et sauvegarder. @@ -173,6 +174,7 @@ while True: livre['titre'] = input("titre > ") livre['auteur'] = input("auteur > ") livre['edition'] = input("edition > ") + bibliotheque.append(livre) sauvegarder(bibliotheque) ```