小编Sam*_*yng的帖子

使用“open()”而不是“with open()”有什么优势吗?

我知道使用它会好很多

with open(...)... 
Run Code Online (Sandbox Code Playgroud)

但我想知道是否有使用过的情况

open(...)
Run Code Online (Sandbox Code Playgroud)

在任何情况下都有优势。

python file with-statement

1
推荐指数
1
解决办法
493
查看次数

标签 统计

file ×1

python ×1

with-statement ×1