This commit is contained in:
shao1chuan 2021-10-08 12:19:00 +08:00
parent b2804b66ed
commit b8e1e75462
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)