摘要: 常用模式解释 open表示打开一个文件 f 变量, 操控XXX.txt文件的句柄 r:只读 w:只写 a:追加写入 b:byte,这种模式下,encoding不能用utf-8字符集 1. 文件的基本操作 1.读取 1. f=open("xxx",mode="r",encodin="utf-8") content=f.read() ... 阅读全文
posted @ 2018-10-27 10:26 阿布_alone 阅读(139) 评论(0) 推荐(0) 编辑
TOP