Can I pass a variable to the decorator in python?

is that the A function uses the decorator, and the variable var inside the A function is passed to the decorator, and then it is checked and so on, okay?

Jun.30,2021

def decorator(func):
    @functools.wraps(func)
    def wrapper(*args, **kwargs):
        if len(args) == 4:
            return func(*args, **kwargs)
        else:
            raise AssertionError("args must be exact!")
    return wrapper
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b30f46-2bd70.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b30f46-2bd70.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?