python3.7下 使用apply() 显示not resolved reference
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)
首先,这个apply不是python内置函数,所以首先你需要
from apply import apply
这样子,先import进来,如果没有apply,首先要
pip install apply