题解 | #字符个数统计#
字符个数统计
https://www.nowcoder.com/practice/eb94f6a5b2ba49c6ac72d40b5ce95f50
from itertools import count def count_chars(str_input): return len(set(str_input)) if __name__ == '__main__': str_input = input() print(count_chars(str_input))
集合set在python中自动去重