不在Python中关闭文件有什么危险?

时间:2015-12-17 16:19:46

标签: python file

如果我打开文件但忘记在Python上使用close()会发生什么?

我的老编程老师告诉我,在使用open()之后关闭文件是不好的做法。他提到引用为0。

为什么关闭文件在Python中很重要?

0 个答案:

没有答案