【简答题】#统计字符串中各个字符出现的次数str ='matplotlib'dict_str = {}for c in str: if c not in dict_str: dict_str[c] = 1 else:######FILL###### dict_str[c] += ____print(dict_str)
【简答题】#统计字符串中各个字符出现的次数str ='matplotlib'dict_str = {}for c in str:######FILL###### if c ___ dict_str: dict_str[c] = 1 else:######FILL###### dict_str[c] += ____print(dict_str)