import re
from collections import Counter
'''
统计词频
'''
txt=open('word.txt').read()
new_txt=re.split('\W+',txt)
result=Counter(new_txt)
print(result.most_common())
8897218774ffde0a911f37fc7457fc01da7b69e0
<mask token>

<mask token>
print(result.most_common())

<mask token>
txt = open('word.txt').read()
new_txt = re.split('\\W+', txt)
result = Counter(new_txt)
print(result.most_common())

import re
from collections import Counter
<mask token>
txt = open('word.txt').read()
new_txt = re.split('\\W+', txt)
result = Counter(new_txt)
print(result.most_common())

import re
from collections import Counter
'''
统计词频
'''
txt=open('word.txt').read()
new_txt=re.split('\W+',txt)
result=Counter(new_txt)
print(result.most_common())