What is the way to deal with the merits in python?
編輯:Python
What is the way to deal with the merits in python?
Accepted answer 1:
In order to ensure that the file is closed, python introduces the with statement, which implicitly calls the f.close() method. Using the with statement can get better exception handling.