摘要: 文件处理 open() f = open("文件路径","打开文件模式","指定的字符编码") f:文件句柄 #del f f.close() #回收操作系统的资源 文件上下文处理: withopen ('文件路径','打开文件模式','指定的字符编码') as f: 文件打开模式: r:只读: 1 阅读全文
posted @ 2019-11-08 21:13 godlover 阅读(122) 评论(0) 推荐(3) 编辑