This commit is contained in:
13002457275 2021-10-08 11:20:59 +08:00
parent 7c2d3e4663
commit d8091457b8
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
#自动关闭文件
#自动关闭文件
with open('mytest.txt') as file_in:
for line in file_in:
print(line)