擅长:python、mysql、java
<p>错误消息的名称将提示您问题所在。在</p>
<p>您没有正确地<strong>缩进</strong>,因此得到“syntaxError:expected an<strong>indented</strong>块”。在</p>
<p>另外,在Python中,行不以分号结尾,这不是C#。在</p>
<p>我建议读一个基本的<a href="http://wiki.python.org/moin/BeginnersGuide" rel="nofollow">Python guide</a>和一个<a href="http://docs.python.org/2/tutorial/" rel="nofollow">Python tutorial</a></p>