Python Decorator deep dive — Decorators have always been a useful and classic feature in Python, and they are widely used in projects, such as logging, caching and other tasks. Function to Decorator Before talking about decorators, let’s first review several core concepts of functions. First, we must know that in Python, functions are “first-class” citizens, and functions…