题解 | #字符个数统计#
字符个数统计
https://www.nowcoder.com/practice/eb94f6a5b2ba49c6ac72d40b5ce95f50
# 遍历字符串并计数 input_string = input() input_list = [i for i in input_string] unique = [] for i in input_list: if i not in unique: unique.append(i) print(len(unique))