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 回答
![?](http://img1.sycdn.imooc.com/5458662500019a7c02200220-100-100.jpg)
莫回无
TA贡献1865条经验 获得超7个赞
首先,这个apply不是python内置函数,所以首先你需要
from apply import apply
这样子,先import进来,如果没有apply,首先要
pip install apply
添加回答
举报
0/150
提交
取消