摘要: 1 with上下文管理 with open('a.txt', mode='rt', encoding='utf-8') as f1 , open('b.txt', mode='rt', encoding='utf-8') as f2: # 自动调用f1.close()、f2.close()回收操作系 阅读全文
posted @ 2020-06-11 16:32 最冷不过冬夜 阅读(104) 评论(0) 推荐(0) 编辑