class human(): pass # 使用pass 可以建立一個空類別. 接著使用建立類別的預設方法「 __init__ 」( 注意前後是兩條底線),將預設的屬性加入類別裡。 def __init__(self) ...
確定! 回上一頁