Python 也提供了一個函式isinstance()來判斷類別(Class)與物件(Object)的關係,語法 ... print(isinstance(mazda, Cars)) # 執行結果:True; print(isinstance(mazda, ...
確定! 回上一頁