擅长:python、mysql、java
<p>假设<code>i</code>是索引,但它是字典,请使用:</p>
<pre><code>for item in data["Results"]:
print item["Name"]
</code></pre>
<p>引用<a href="https://docs.python.org/2/tutorial/controlflow.html#for-statements" rel="noreferrer">for Statements</a>:</p>
<blockquote>
<p>The for statement in Python differs a bit from what you may be used to in C or Pascal. Rather than always iterating over an arithmetic progression of numbers (like in Pascal), or giving the user the ability to define both the iteration step and halting condition (as C), <em>Python’s for statement iterates over the items of any sequence (a list or a string), in the order that they appear in the sequence</em>. </p>
</blockquote>