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()
posted @ 2019-02-18 22:29  qewpqewp  阅读(147)  评论(1编辑  收藏  举报