... 形狀名稱,函式 length 沒有執行任何程式,定義類別 Tri 繼承類別 Shape,類別 Tri 的函式 __init__ 允許輸入形狀名稱為「三角形」與三角形的三邊長,函式 length 回傳 ...
確定! 回上一頁