Semaine 4, jour 3, matin
This commit is contained in:
@@ -51,4 +51,11 @@ objet.append({"titre": "Alice aux pays", "auteur": "Caroll"})
|
||||
|
||||
with open("livres.json", "w") as fichier_json:
|
||||
json.dump(objet, fichier_json, indent= 4)
|
||||
```
|
||||
```
|
||||
|
||||
## Les classes
|
||||
|
||||
### Méthodes "Dunder"
|
||||
|
||||
- __init__
|
||||
- __repr__
|
||||
Reference in New Issue
Block a user