阅读背景:

如何识别变量是类还是对象

来源:互联网 

I am working at a bit lower level writing a small framework for creating test fixtures for my project in Python. In this I want to find out whether a particular variable is an instance of a certain class or a class itself and if it is a class, I want to know if it is a subclass of a certain class defined by my framework. How do I do it?I am working at a bit lower level writing a sma




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

分享到: