27 lines
700 B
Python
27 lines
700 B
Python
|
|
def pain(type="sésame"):
|
||
|
|
def creerWrapper(contenu):
|
||
|
|
def wrapper(*args, **kwargs):
|
||
|
|
print(f"</''''''''\> ({type})")
|
||
|
|
contenu(*args, **kwargs)
|
||
|
|
print("</________\>")
|
||
|
|
return wrapper
|
||
|
|
|
||
|
|
return creerWrapper
|
||
|
|
|
||
|
|
|
||
|
|
def garniture(dessus="salade", dessous="tomate"):
|
||
|
|
def creerWrapper(principal):
|
||
|
|
def wrapper(*args, **kwargs):
|
||
|
|
print((f"---;;;;;;--- ({dessus})"))
|
||
|
|
principal(*args, **kwargs)
|
||
|
|
print((f"---======--- ({dessous})"))
|
||
|
|
return wrapper
|
||
|
|
|
||
|
|
return creerWrapper
|
||
|
|
|
||
|
|
|
||
|
|
@pain(type="blanc")
|
||
|
|
@garniture("concombre", "lardon")
|
||
|
|
def sandwich(ingrédient="jambon"):
|
||
|
|
print(f"---alimnt--- ({ingrédient})")
|