摘要: Python中打开文件两个方法: f = open("file",'r+',encoding="utf-8") #打开文件 f.close() #关闭文件 with open("file",'r',encoding="utf-8") as f ,\ open("file",'r',encoding= 阅读全文