python中将正则过滤的内容输出写入到文件中的实例
处理过滤Apache日志文件 access_test.log文件内容 27.19.74.143 - - [30/May/2015:17:38:21 +0800] GET /static/image/smiley/default/sleepy.gif HTTP/1.1 200 2375 8.35.201.164 - - [30/May/2015:17:38:21 +0800] GET /static/image/common/pn.png HTTP/1.1 200 592 过滤目标 60.166.12.170 31/May/2013:00:00:02 /forum.php 200 4