擅长:python、mysql、java
<p>使用dictionary<code>itervalues()</code>方法:</p>
<pre><code>for value in your_dict.itervalues():
# Since the values are lists, we have to enumerate those too:
for item in value:
output_file.write(item)
output_file.write("\n")
</code></pre>