摘要: 文件操作 读取文件 1.操作文件的第一种方式(读文件) f = open('a.txt',encoding='utf-8') content = f.read() #<class 'str'> print(content,type(content)) #释放资源 f.close() #释放后调用资源 阅读全文
posted @ 2022-04-19 08:21 a-tao必须奥利给 阅读(48) 评论(0) 推荐(0)