擅长:python、mysql、java
<p>Quoth<a href="https://docs.python.org/2/library/functions.html#open" rel="nofollow">the documentation for ^{<cd1>}</a>:“<em>打开二进制文件时,应该将<code>'b'</code>附加到mode值后,以二进制模式打开文件</em>”</p>
<p>使用<code>b</code>打开二进制文件:</p>
<pre><code>with open(_destination_for_downloads+'platici_dph.zip','wb') as f:
</code></pre>