擅长:python、mysql、java
<p>您想使用<a href="http://docs.python.org/tutorial/datastructures.html#more-on-lists" rel="nofollow">.index()</a></p>
<pre><code>d = {'Name': ['Thomas', 'Steven', 'Pauly D'], 'Age': [30, 50, 29]}
position = d['Name'].index('Steven')
age = d['Age'][position]
</code></pre>
<p>或者<code>age = d['Age'][d['Name'].index('Steven')]</code>更密集。在</p>