Python with open来进行文件操作

#可以进行多个文件同时打开,并且不用关心文件有关闭的问题
# with open('a.txt','r',encoding='utf-8') as f,open('b.txt') as f1:

 

posted @ 2017-07-13 23:42  刘小伟  阅读(1667)  评论(0编辑  收藏  举报