Python 也提供了一個函式isinstance()來判斷類別(Class)與物件(Object)的關係,語法如下:. isinstance(object_name, class_name).
確定! 回上一頁