摘要: python的文件操作方法: file.readline() 读取下一行文件,返回含有内容的字符串 file.readlines() 读取整个文件,返回一个字符串列表 file.read() 读取整个文件,返回一个字符串 f = open("filename","mode") 打开一个文件,mode 阅读全文
posted @ 2017-09-03 00:49 我不 阅读(376) 评论(0) 推荐(0)