标签:python
#!/bin/env python #-*- coding:utf-8 -*- import os import sys from subprocess import Popen #__author__ = huangyishan def main(): special_string = ‘42.120.63.223‘ txt_content = open(‘skysrt.txt‘,‘r‘) for line in txt_content.readlines(): l = line.strip() if l.find(special_string)>=0: print(l) if __name__ == ‘__main__‘: main()
///
本文出自 “黄怡善的运维博客” 博客,谢绝转载!
标签:python
原文地址:http://linuxpython.blog.51cto.com/10015972/1942713