汽車類別; class Cars: # 建構式; def __init__(self, color, seat): ... Python也提供了一個函式isinstance()來判斷類別(Class)與物件(Object)的關係,語法如下:.
確定! 回上一頁