#!/usr/bin/python import os fi = open("f.fdat", "r") fo = open("fcwithtime1.fdat", "w") i = 0 for line in fi.readlines(): i = i+1 fo.write(line) if i==12432320: break # fo.write('\n') fi.close() fo.close()
删除文件特定行之后的内容
猜你喜欢
转载自www.cnblogs.com/ywu24/p/12565355.html
今日推荐
周排行