delete cave.dia
This commit is contained in:
commit
b15a694cac
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