摘要: 一、文件操作基本用法 1、 open 表示打开一个文件 f 变量,操控 hehe.txt文件句柄 f = open("hehe.txt", mode="r" ,encoding="utf-8") #读取文件中的内容 # read(n) 读取n个字符 content = f.read(3) #读取三个 阅读全文
posted @ 2018-10-26 17:35 wenjie^_^ 阅读(186) 评论(0) 推荐(0) 编辑