摘要: 文件操作1、接触文件操作f1 = open("d:\\test.txt",mode='r',encoding='utf-8')content = f1.read()print(content) f1.close()'''open 内置函数mode 以什么方式打开encoding 指定打开的编码f1 文件句柄f1.close() 关... 阅读全文
posted @ 2020-04-06 20:27 全爱国 阅读(197) 评论(0) 推荐(0) 编辑