p = input().split()
res={}
for i in p:
k = dict1.get(i[4:8],'其他')
res[k]=res.get(k,0)+1
for i, j in sorted(res.items(),key=lambda x:x[1],reverse=True)[:3]:
print(i, j, end=' ')
雨师@的博客# 统计学生总人数 def total(): if os.path.exists(filename): with open(filename,'r',encoding='utf-8') as rfile: students=rfile.readlines() if students: print("一共有{}名学生。".format(len(students...