MCPcopy Create free account
hub / github.com/Jack-Cherish/python-spider / initpattern

Function initpattern

daili.py:107–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105 2017-05-27
106"""
107def initpattern():
108 #匹配丢包数
109 lose_time = re.compile(u"丢失 = (\d+)", re.IGNORECASE)
110 #匹配平均时间
111 waste_time = re.compile(u"平均 = (\d+)ms", re.IGNORECASE)
112 return lose_time, waste_time
113
114if __name__ == '__main__':
115 #初始化正则表达式

Callers 1

daili.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected