name 'apply' is not defined
Posted 深圳地铁Princess
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了name 'apply' is not defined相关的知识,希望对你有一定的参考价值。
File "MT_class.py", line 12, in run
apply(self.func, self.args)
NameError: name ‘apply‘ is not defined
python3已经不再支持apply
直接改成self.func(*self.args)就好了
以上是关于name 'apply' is not defined的主要内容,如果未能解决你的问题,请参考以下文章
python 中的错误NameError: name 'sklearn' is not defined
NameError: global name ‘***‘ is not defined
NameError: global name ‘***‘ is not defined
flutter工程,无法运行,报错:The ‘java‘ plugin has been applied, but it is not compatible