zhanghao=list(open("zhanghao.txt","r",encoding="utf-8"))
ezh=list(open("ezh.txt","r",encoding="utf-8"))
for idx,x in enumerate(ezh):
lst=[]
for item in zhanghao[idx*120:idx*120+120]:
lst.append(item)
with open ("./data/"+x[:-1]+r".dd","w",encoding="utf-8") as fd:
fd.writelines(lst)
print("over........")
重点: for item in zhanghao[idx*120:idx*120+120]: 这句就是要把ZHANGHAO.TXT里面的文本以120行为单位 均匀的劈开,
不知道是否有漏网之鱼