我知道使用它会好很多
with open(...)...
但我想知道是否有使用过的情况
open(...)
在任何情况下都有优势。
python file with-statement
file ×1
python ×1
with-statement ×1