Java
Python
Spring
项目介绍
外观
with open("poem.txt") as f: for line in f: print(line, end='') ''' with open能够将之前的try..finally最后执行的关闭文件的操作,交给with open自动完成 '''
poem.txt里面的内容为:12165456478
>>>12165456478