1
메서드 정의에 왜 누군가가 형식 매개 변수 목록에서 상수 PERMANENCE_INC
과 동일한 형식 매개 변수 amount
을 설정하겠습니까?파이썬 메서드 매개 변수 목록
def increasePermanence(self, amount=PERMANENCE_INC):
""" Increases the permanence of this synapse. """
self.permanence = min(1.0, self.permanence+amount)