摘要:
一、文件操作 f = open("file.txt",'r') print(len(f.read())) #文件总长度 print(f.tell()) #读完文件,文件指针位置 f.seek(0,0) #偏移回文件头 print(f.readline()) #打印出文件中一行(第一行) print 阅读全文
posted @ 2017-07-21 11:47
金牛宝宝
阅读(233)
评论(0)
推荐(0)