Python Advanced
Python Advanced
Python
def my_decorator(func):
def wrapper():
func()
return wrapper
@my_decorator
def say_hello():
print("Hello!")
say_hello()
import copy
shallow = copy.copy(original)
deep = copy.deepcopy(original)
Python
class Meta(type):
class MyClass(metaclass=Meta):
pass