摘要: 文件读写模式与操作方法 文件读写模式 只读模式 1.只读模式顾名思义就是我们在使用程序操控文件执行时只能读取不能够编写 # 如果文件路径不存在的话那么就不会调出数据,直接报错无法读取 with open(r'a.txt', 'r', encoding='utf-8') as f: print(f.r 阅读全文
posted @ 2022-06-29 16:25 Joseph-bright 阅读(717) 评论(0) 推荐(0) 编辑