题解 | #字符个数统计#
字符个数统计
https://www.nowcoder.com/practice/eb94f6a5b2ba49c6ac72d40b5ce95f50
Python哈希表
word_dict = {} for num in range(128): word_dict[chr(num)] = 0 str_in = input() for i in range(len(str_in)): word_dict[str_in[i]] = 1 count = 0 for key in word_dict.keys(): if word_dict[key]: count+=1 print(count)