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)
阅读 1.9k
1 个回答

首先,这个apply不是python内置函数,所以首先你需要

from apply import apply

这样子,先import进来,如果没有apply,首先要

pip install apply

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题