import re
f1=open("H:/zxwTest/resultYANJIE.txt", "r")
f2=open("H:/zxwTest/result4.txt", "w")
infor=[]
count=0
for line in f1:
name = line.split(':')
infor.append(name[1])
#count=count+1
if "laji"==name[0] or "Illegal_parking"==name[0] or "outManagement"==name[0] or "FlowManagement"==name[0]:
count=count-1
f2.write(infor[count]+'\n')
count=count+1
count=count+1
f1.close()
f2.close()
import re
f1 = open("H:/128/FlowM/2018-07-B/result.txt","r")
f2 = open("H:/128/FlowM/2018-07-B/resultMiss.txt", "w")
first = []
infor = []
for line in f1:
name = line.split(':')
first.append(name[0])
infor.append(name[1])
length = len(first)
for x in range(1,length):
if first[x] == first[x-1]:
f2.write(infor[x-1]+'\n')
f1.close()
f2.close()