Python的内建函数:isinstance
def isinstance(x, A_tuple): # real signature unknown; restored from __doc__
"""
Return whether an object is an instance of a class or of a subclass thereof.
A tuple, as in ``isinstance(x, (A, B, ...))``, may be given as the target to
c
原创
2021-02-24 09:21:28 ·
550 阅读 ·
0 评论