标签:style 文件中 文件 span code blog 循环 log line
# coding:utf-8 with open(‘dist_1.txt‘,‘r‘,encoding= ‘utf-8‘) as f1,open(‘dist_2.txt‘,‘w‘,encoding= ‘utf-8‘) as f2: i=0 for line in f1: i+=1 if i%10==0: f2.write(line)
标签:style 文件中 文件 span code blog 循环 log line
原文地址:http://www.cnblogs.com/kearney908/p/7001166.html