摘要:
import shutil with open('/path/to/file', 'r') as f: with open('/path/to/file.new', 'w') as g: for line in f.readlines(): if '/local/server' not in line: ... 阅读全文
摘要:
from itertools import islice input_file = open(file_name) for line in islice(input_file, 1, None): do_readline() 原文地址:http://blog.csdn.net/vernice/art 阅读全文