标签:ros family adl sof pen code nbsp read mic
取movie.txt文件的若干行到movie2.txt
#取txt文件 的若干行到另一个txt
f1 = open(r‘F:\movie.txt‘,‘rb‘)
f2= open(r‘F:\movie2.txt‘,‘ab‘)
i=0
while True:
line = f1.readline()
i+=1
if i>100 and i<150:
f2.write(line)
if i>200:
break
标签:ros family adl sof pen code nbsp read mic
原文地址:https://www.cnblogs.com/zhouxinfei/p/8976819.html