Sfoglia il codice sorgente

added the output of decorator

Sakis Kasampalis 11 anni fa
parent
commit
83009281ed
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      decorator.py

+ 3 - 0
decorator.py

@@ -23,3 +23,6 @@ def hello():
 
 if __name__ == '__main__':
     print('result:{}   name:{}   doc:{}'.format(hello(), hello.__name__, hello.__doc__))
+
+### OUTPUT ###
+# result:<b><i>hello world</i></b>   name:hello   doc:a decorated hello world