string = input('请输入一串字符串:')
str_dict = {}
for j in string:
    if str_dict.get(j):
        str_dict[j] += 1
    else:
        str_dict[j] = 1
print(str_dict)