first commit cave.py
This commit is contained in:
parent
32e7c44115
commit
061043606a
30
cave.py
Normal file
30
cave.py
Normal file
@ -0,0 +1,30 @@
|
||||
|
||||
class etageres(object):
|
||||
def __init__(self):
|
||||
self.liste_etagere={}
|
||||
self.nbetagere=0
|
||||
|
||||
def add_etagere(self,largeur,hauteur):
|
||||
|
||||
self.liste_etagere[self.nbetagere] = etagere(largeur,hauteur,self)
|
||||
self.nbetagere+=1
|
||||
|
||||
|
||||
class etagere(object):
|
||||
def __init__(self,largeur,hauteur,etageres):
|
||||
self.largeur=largeur
|
||||
self.hauteur=hauteur
|
||||
self.etageres=etageres
|
||||
|
||||
def add_bouteille():
|
||||
pass
|
||||
|
||||
|
||||
class bouteille(object):
|
||||
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
new=etageres()
|
||||
new.add_etagere(30,3)
|
||||
print (new.liste_etagere[0].largeur)
|
Loading…
Reference in New Issue
Block a user