(Python)from collections import Counter统计包

用法

这里有个文件
在这里插入图片描述

from collections import Counter

f=open('file.txt','r')

a=f.read()

print Counter(a)

在这里插入图片描述
得到flag:DCTF{ka1f4NgxlntAi}