파이썬의 목적 __repr__ def __repr__(self): return '' % ( self.__class__.__name__, self.urlconf_name, self.app_name, self.namespace, self.regex.pattern) 이 방법의 의미 / 목적은 무엇입니까? __repr__이 객체를 생성 할 수있는 방법 중 하나 인 객체의 인쇄 가능한 표현을 반환해야 합니다. 공식 문서를 참조 하십시오 . 최종 사용자를위한 __repr__반면 개발자를 __str__위한 것입니다. 간단한 예 : >>> class Point: ... def __init__(self, x, y): ... self.x, self.y = x, y ... def __repr__(self): ... retu..