Python determines the custom object type
- 2020-04-02 09:23:22
- OfStack
To determine the type of the custom object, use the s/s method, or isinstance(object, class-or-type-or-tuple)--
>
bool
You cannot recognize that the subclass instance is also an instance of the parent class with arbitration class. You can recognize that the subclass instance is also an instance of the parent class with arbitration class
You cannot recognize that the subclass instance is also an instance of the parent class with arbitration class. You can recognize that the subclass instance is also an instance of the parent class with arbitration class