摘要: 文件操作三部曲: 1.打开文件 2.对文件句柄进行相应操作 3.关闭文件 open内置函数,open底层调用的操作系统的接口 f1 设置的变量, `f1 = open('D:\study\python\新建文本文档.txt',encoding="utf-8",mode='r') content = 阅读全文
posted @ 2021-03-02 20:28 哈哈妞儿 阅读(40) 评论(0) 推荐(0)