This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
ModifiedFile
在上使用Open
行“打开”。缩进上下文结束后,文件关闭。您不能写入封闭的文件。
您可以做的一件事是使用Open 上下文(缩进)将其写入
下。
modifiedFile
is "opened" on thewith open
line. After that indentation context ends, the file is closed.You can't write to a closed file.
One thing you can do is move the writes under that
with open
context (indentation).