This commit is contained in:
shao1chuan 2021-10-08 12:39:54 +08:00
parent 3c71825092
commit cd9877d04e
1 changed files with 1 additions and 0 deletions

View File

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