python3-分割文本文件
#myhaspl@myhaspl.comfId=1with open("tf-allsrc.txt","r") as sf: while True: with open("tf-src-"+str(fId)+".txt","w+") as f: data=sf.read(1024*1024*5) if not data: break f.write(data) print(fId,"#",end=".") fId+=1
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。