內部函式

isinstance 判斷此物件的類別型態

isinstance(object, classinfo)

>>> isinstance(1,int)
True
>>> isinstance("s",str)
True

results matching ""

    No results matching ""