擅长:python、mysql、java
<p>经过一番研究,我在python文档中找到了<a href="https://docs.python.org/2/library/collections.html#collections.OrderedDict" rel="nofollow">OrderedDict</a>。在</p>
<pre><code>from collections import OrderedDict
client.mydb.mycoll.update({"_id":123},{'$push':{"loc":OrderedDict((("lng",77.77),("lat":12.12)))}} )
</code></pre>