您的位置: 首页 > IT文章 > Python with open来进行文件操作 Python with open来进行文件操作 分类: IT文章 • 2022-03-27 09:58:55 #可以进行多个文件同时打开,并且不用关心文件有关闭的问题 # with open('a.txt','r',encoding='utf-8') as f,open('b.txt') as f1: