From 142fc4c4a0baf9ebe8b16994904b6a8bfd72155a Mon Sep 17 00:00:00 2001 From: un-oeil Date: Sun, 15 Nov 2026 12:21:23 +0100 Subject: [PATCH] =?UTF-8?q?adding=20pycache=20to=20gitignore=20and=20doing?= =?UTF-8?q?=20the=20El=C3=A9ment=20chimiques=20part?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + main.py | 19 ++++++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 4c49bd7..a1b9cbb 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .env +__pycache__/ \ No newline at end of file diff --git a/main.py b/main.py index e3fcdb3..37f70fa 100644 --- a/main.py +++ b/main.py @@ -13,10 +13,27 @@ class ChemicalComponent(ABC): def mass(self): pass +''' Test de création d'un composant chimique pour vois si il y a des erreurs + class Atom(ChemicalComponent): def __init__(self,name): super().__init__(name) def mass(self): - return "masse de l'atome" \ No newline at end of file + return "masse de l'atome" + +''' + +class ChemicalElement(ChemicalComponent): + def __init__(self, name): + super().__init__(name) + + @classmethod + def atomic_number(cls): + pass + + @classmethod + def symbol(cls): + pass +