import jieba
fo=open('text.txt','r',encoding='utf-8')
t=fo.read()
fo.close()
words=jieba.cut(t)
dic={}
for w in words:
if len(w)==1:
continue
else:
dic[w]=dic.get(w,0)+1
wc = list(dic.items())
wc.sort(key=lambda x:x[1],reverse = True)
for i in range(20):
print(wc[i])