解题思路:
注意事项:
参考代码:
ls=[',','.'] s=list(map(str,input().split())) for i in range(len(s)): if s[i][-1] in ls: s[i]=s[i][:-1] s=[i.upper() for i in s] dic={} for i in s: if i not in dic: dic[i]=1 else: dic[i]+=1 l=max([len(i) for i in dic]) for i in dic: print(' '*(l-len(i))+i+':'+'*'*dic[i]+str(dic[i]))
0.0分
0 人评分