摘要: 一,文件操作的基本用法 1,open表示打开一个文件 f变量,操控hehe.txt文件句柄 f = open('hehe.txt',mode = 'r',encoding = 'utf-8') #读取文件中的内容 #read(n)读取n个字符 conten = f.read(3) #读取三个字符 c 阅读全文
posted @ 2020-03-23 10:23 DD欧尼 阅读(162) 评论(0) 推荐(0) 编辑