<p>我有一个使用<code>request</code>从url读取文件内容的场景。你知道吗</p>
<pre><code> f = open(..., 'wb')
for chunk in message_content.iter_content():
f.write(chunk)
</code></pre>
<p>但是,我不想实际将文件写入磁盘,因为我想继续操作我下载的<code>f</code>的内容。你知道吗</p>
<p>有没有办法告诉<code>f</code>永远不要写入磁盘?你知道吗</p>