阅读背景:

为什么在__del__中没有定义“NameError:全局名称‘open’?”

来源:互联网 

I'm getting a NameError in the __del__ function of a class. I do not understand why 'open' is not accessible inside the function __del__. I am using Python 3.4.0I'm getting a NameError in the __del__ function




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: