<p>当我试图运行这段代码时,它给了我一条错误消息line21 UnexpectedIndent。我该怎么办?谢谢。你知道吗</p>
<pre><code>for filepath in matches:
with open (filepath,'rt') as mytext:
mytext=mytext.read()
print re.findall(r'NSF\s+Org\s+\:\s+(\w+)',mytext) #This line just aims to diagnose the problem.
matchOrg=re.findall(r'NSF\s+Org\s+\:\s+(\w+)',mytext)[0]
capturedorgs.append(matchOrg)
</code></pre>
<p>当我摆脱<code>print re.findall(r'NSF\s+Org\s+\:\s+(\w+)',mytext)</code>时,错误消息是<code>MatchOrg... list out of range</code>。你知道吗</p>
<p>去开会。将在4p后检查所有回复</p>