(Python)from collections import Counter统计包

用法

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

from collections import Counter

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

a=f.read()

print Counter(a)

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

猜你喜欢

转载自blog.csdn.net/weixin_45556441/article/details/114373492