python读取图片exif信息

f = open("/home/admin/tlog-proxy/logs/gather/172.20.186.157/home/admin/logs/eagleeye/eagleeye.log.bak")
ls = f.readlines()

list = []
repeat = []

for l in ls:
    l = l.replace("\n","")
    if l =="":
        continue
    if l in list:
        if not (l in repeat):
            repeat.append(l)
    else:
        list.append(l)
    
print len(repeat)
count=0
for x in repeat:
    print x
    if count>10:
        break
    count+=1

 

你可能感兴趣的:(python)