def __init__(self):
     self.server = Server('Pat')  # Embed other objects
     self.chef = PizzaRobot('Bob')  # A robot named bob
     self.oven = Oven()
示例#2
0
 def __init__(self):
     self.server = Server('Pat')
     self.chef = PizzaRobot('Bob')
     self.oven = Oven()
示例#3
0
 def __init__(self):
     self.server = Server("Pat")
     self.chef = PizzaRobot("Bob")
     self.oven = Oven()
示例#4
0
 def __init__(self):
     self.server = Server('Pat')  # 服务员叫 Pat
     self.chef = PizzaRobot('Bob')  # 机器人叫 Bob
     self.oven = Oven()
示例#5
0
 def __init__(self):
     self.server = Server('Peat')                # Встроить другие обьекты
     self.chef = PizzaRobot('Bob')               # Робот по имени Боб
     self.oven = Oven()
示例#6
0
 def __init__(self):
     self.server = Server('Ernest')
     self.chef = PizzaRobot('Robert')
     self.oven = Oven()
示例#7
0
 def __init__(self):
     self.server = Server('Pat')  # 다른 객체를 내포시킴
     self.chef = PizzaRobot('Bob')  # bob이라는 이름의 로봇
     self.oven = Oven()