저는 Python에 새로운 있습니다. 오류가 발생했습니다.TypeError : 'bool'객체를 호출 할 수 없습니다.
while not cls.isFilled(row,col,myMap):
TypeError: 'bool' object is not callable
이 문제를 해결하는 방법을 알려주십시오. 첫 번째 "if"점검은 정상이지만 "not"에이 오류가 있습니다.
def main(cls, args):
...
if cls.isFilled(row,col,myMap):
numCycles = 0
while not cls.isFilled(row,col,myMap):
numCycles += 1
def isFilled(cls,row,col,myMap):
cls.isFilled = True
## for-while
i = 0
while i < row:
## for-while
j = 0
while j < col:
if not myMap[i][j].getIsActive():
cls.isFilled = False
j += 1
i += 1
return cls.isFilled
누군가 Flask-Login으로 비슷한 오류가 발생하면 : 'current_user.is_authenticated() : TypeError :'bool '객체를 호출 할 수 없습니다. [이 질문에 대한 답변] (http://stackoverflow.com/q/32750526/1429387)). – naXa