摘要: # 文件操作 文件操作模式 1、"r" 读 2、"w" 清空写入 3、"a" 追加 4、"r+" 读写模式,可读可写 5、"w+" 写读模式,可写可读 6、"a+" 追加模式 1 with open("小重山","r",encoding="utf-8") as f: 2 data = f.read( 阅读全文
posted @ 2019-09-20 16:39 Rise_team 阅读(241) 评论(0) 推荐(0) 编辑