str1=input('请输入一段字符:')
dict1={}
for i in str1.lower(): #使字符串全部变为小写,并遍历
if 'a'<=i<='z':
dict1[i]=str1.count(i) #字典的添加
for key,value in dict1.items(): #拿取键和值
print(f'{key}出现的频率为:{value}')