python,日志分析脚本
做运维的朋友刚开始写python,就用这段分析日志代码算作入门吧import retudou@Gyyxf=open("/tmp/a.log","r")arr={}lines = f.readlines()for line in lines: ipaddress=re.compile(r'^#(((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\...