6-4 Python 3.5 技術手冊如果要改進,可以把相同的程式碼提昇(Pull up)至父類別Role,並讓SwordsMan 與Magician 類別都繼承自Role 類別: game1 rpg.py class Role: ...
確定! 回上一頁