Python language learning system (e)

3-22 Built-in functions

Issubclass built-in function () for determining the relationship between the class object and the object class. There are two parameters, the first parameter is a class object. The second parameter is a class object or a tuple consisting of the class object. For determining whether the first parameter is a parameter of the second subclass (subclass long as it is a group of one element, will return True)

 

The isinstance built-in function () determines a relationship between an object instance of the class object.

 

Guess you like

Origin www.cnblogs.com/maowuyu-xb/p/12290901.html