Apply () not resolved reference under python3.7

Use apply () to display not resolved reference under

python3.7

class MyThread(threading.Thread):
    def __init__(self, func, args):
        threading.Thread.__init__(self)
        self.args = args
        self.func = func

    def run(self):
        apply(self.func, self.args)
Jul.01,2021

first of all, this apply is not a python built-in function, so first you need

< H1 > from apply import apply < / H1 >

in this case, import comes in first. If there is no apply, you must first

. < H1 > pip install apply < / H1 >
Menu