이 코드를 실행할 때이 "TypeError : 'int'객체가 호출 가능하지 않습니다. '오류가 발생했습니다. 일부 연구를 수행했는데 변수 이름이 뭔가있는 것 같아요. ? 누군가 나에게 무엇이 잘못되었는지 설명해 주시겠습니까? 당신은 예와 방법 balance
마스킹하는'int'객체가 호출 가능하지 않음 오류 파이썬
>>> a = account()
>>> a.set(50)
>>> a.balance()
Traceback (most recent call last):
File "<pyshell#12>", line 1, in <module>
a.balance()
TypeError: 'int' object is not callable
정확히 오류가 가리키는 경우 : Class definitions documentation에서? –