擅长:python、mysql、java
<p>Python<a href="http://docs.python.org/2/tutorial/datastructures.html#dictionaries" rel="nofollow">^{<cd1>}s are unordered</a>。请改用<a href="http://docs.python.org/2/library/collections.html#collections.OrderedDict" rel="nofollow">^{<cd2>}</a>。在</p>
<pre><code>from collections import OrderedDict as odict
# ...
c = odict(zip(a, b))
</code></pre>