为了账号安全,请及时绑定邮箱和手机立即绑定

python3.7下 apply() not resolved reference

python3.7下 apply() not resolved reference

互换的青春 2018-10-24 09:43:20
python3.7下 使用apply() 显示not resolved referenceclass 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 回答

?
莫回无

TA贡献1865条经验 获得超7个赞

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

from apply import apply

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

pip install apply


查看完整回答
反对 回复 2018-10-24
  • 1 回答
  • 0 关注
  • 1555 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信