<blockquote>
<p><strong>Possible Duplicate:</strong><br/>
<a href="https://stackoverflow.com/questions/1834556/does-a-file-object-automatically-close-when-its-reference-count-hits-zero">Does a File Object Automatically Close when its Reference Count Hits Zero?</a> </p>
</blockquote>
<p>我了解到需要关闭文件对象,但有人能提供一个非常简单的示例(代码示例),其中错误是由于不关闭文件对象造成的吗?你知道吗</p>