#!/usr/bin/python
#coding:utf-8
import re
x=open('access1.log')
abc={}
for i in x:
m=re.search('firefox',i)
if m:
key=m.group()
abc[key]=abc.get(key,0)+1
print abc

相关文章:

  • 2021-06-11
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-02
  • 2022-02-28
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
  • 2021-07-25
相关资源
相似解决方案