2019寒假第三次做业

学习视频课程(20')

实验题(30'+120')

热身题(30')

image

基本题 (120')

获取用户请求(15')

image

请求格式处理(25')

image

格式处理代码

import re
f=open("pakcet_capture.txt")
while str :
    str = f.readline()
    ip=re.findall(r"IP (.+?): Flags",str)
    length=re.findall(r"length (.+?)",str)
    print " ".join(ip+length)
f.close()
相关文章
相关标签/搜索