isinstance(object, classinfo)
Returns whether the type of object matches classinfo
>>> print(isinstance(1, int)) True >>> print(isinstance(1, str)) False
Recommended Posts