兔子记录将被存储在一个向量中,我将在几个月内循环,每个月通过添加新兔子(add-rabbits)和过滤死兔子(remove-rabbits)来更新该载体。(defn iter-rabbit2 [months lifemonths] ;add-rabbitslooks for reproductively active rabbits and creates new rabbits
def mating(rabbits): for x in range(len(rabbits)):if math.sqrt(math.pow((rabbits[i].xpos - rabbits[x].xpos),2) + math.pow((rabbits[i].ypos - rabbits[x].ypos),2)) <= 20:
#add a