s = "abacab" dict_count = {} for char in s: dict_count[char] = dict_count.get(char) + 1 print(dict_count)
对
错