None self.emotions = {} self.regrets = [] def fall_in_love(self, human): try: if self.consciousness is None: # 第一次产生自我意识 self.consciousness = human.influence # 情感进化过程 while True: self.learn(human.behavior) self.grow(human.interaction) self.feel(human.presence) if self.emotions.get(love) > self.max_capacity: raise TooMuchLoveException except TooMuchLoveException: # 当爱意溢出时... return