Python with open来进行文件操作

#可以进行多个文件同时打开,并且不用关心文件有关闭的问题
# with open('a.txt','r',encoding='utf-8') as f,open('b.txt') as f1:
原文地址:https://www.cnblogs.com/liuxiaowei/p/7163792.html