動(dòng)物旅館設(shè)計(jì)文檔 汪子涵
1. 應(yīng)該設(shè)計(jì)哪些類?哺乳動(dòng)物類 鳥(niǎo)類 爬行動(dòng)物類 兩棲動(dòng)物類 魚(yú)類 房間類
class BuruAnimal:
def __init__(self, size):
self.size = size
@staticmethod
def felling():
print("hahaha")
class Bird:
def __init__(self, size):
self.size = size
@staticmethod
def felling():
print("jiujiujiu")
class PaxingAnimal:
def __init__(self, size):
self.size = size
@staticmethod
def felling():
print("xixixi")
class Fish:
def __init__(self, size):
self.size = size
@staticmethod
def felling():
print("gulugulu")
class LiangqiAnimal:
def __init__(self, size):
self.size = size
@staticmethod