擅长:python、mysql、java
<p>问题在于:</p>
<pre><code>file.write(str(dico)) #save my new JSON file
</code></pre>
<p>改用<a href="https://docs.python.org/2/library/json.html" rel="nofollow">json.dumps</a>:</p>
<pre><code>file.write(json.dumps(dico)) #save my new JSON file
</code></pre>