<p>Python的文档说</p>
<blockquote>
<p>When you’re done with a file, call f.close() to close it and free up any system resources taken up by the open file. After calling f.close(), attempts to use the file object will automatically fail.</p>
</blockquote>
<p>Python文件IO是如何工作的,为什么要关闭一个文件?Python的文件IO操作占用了哪些资源</p>