파이썬에서 메소드 오버로딩을 어떻게 사용합니까? 파이썬에서 메소드 오버로드를 구현하려고합니다. class A: def stackoverflow(self): print 'first method' def stackoverflow(self, i): print 'second method', i ob=A() ob.stackoverflow(2) 그러나 출력은 second method 2; 비슷하게: class A: def stackoverflow(self): print 'first method' def stackoverflow(self, i): print 'second method', i ob=A() ob.stackoverflow() 준다 Traceback (most recent call last): File "m..