python3.7下 apply() not resolved reference

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)


互换的青春
浏览 1556回答 1
1回答

莫回无

首先,这个apply不是python内置函数,所以首先你需要from apply import apply这样子,先import进来,如果没有apply,首先要pip install apply
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python