with opne("text.txt", encoding="utf8") as f,
open("text2.txt", encoding="utf8") as f2 :
pass
with代码块执行完就自动close文件、
with opne("text.txt", encoding="utf8") as f,
open("text2.txt", encoding="utf8") as f2 :
pass
with代码块执行完就自动close文件、
转载于:https://www.cnblogs.com/somethingintheway/p/9789650.html