出于某种原因,在下面的代码中:
for statement in statements:
speakerAndSpeech = findSpeaker(statement)
speaker = speakerAndSpeech[0]
speech = speakerAndSepech[1]
## Everything above the below line indents correctly, like this
self.statements.append(createStatement(statements.index(statement), speech, speaker, self.meeting["id"])
## Everything below the above line indents out here
if __name__ == '__main__':
我正在使用python-mode.el
答案 0 :(得分:1)
已经评论过:由于块中最后一个代码行缺少括号引起:
...self.meeting["id"])
也许你想要:
...self.meeting["id"]))