Files
C_C++
Haskell
Java
LaTeX
Misc.
Python
modules
ascii_injection.py
ascii_nn_input_helper.py
better_exceptions_test.py
decorator.py
dpt.py
format.py
graph.py
group.py
int_memory.ctype.py
int_memory.py.py
leno.py
matplotlib_hw.py
nnadd.py
otest.py
snek_help.py
tkinter_filepicker_test.py
torus.py
Vim
Webdev
git
.gitignore
Makefile
tests/Python/decorator.py
2024-06-07 11:48:58 +02:00

24 lines
434 B
Python
Executable File

#!/bin/python3
def print_canary():
print(''' .-. \n'''
+ ''' /'v'\ \n'''
+ ''' (/ \) \n'''
+ '''='="="===<\n'''
+ '''mrf|_| \n''',
end=''
)
myBirdFunction = print_canary
myBirdFunction()
def print_with_yellow(func):
def wrapper(*args, **kwargs):
print("\033[33m")
r = func()
print("\033[0m")
return r
return wrapper
myBirdFunction = print_with_yellow(print_canary)
myBirdFunction()