题解 | #字符个数统计#
字符个数统计
http://www.nowcoder.com/practice/eb94f6a5b2ba49c6ac72d40b5ce95f50
set去重,input本身就会去除换行符,所以不需要过度处理\n, 问题不大
data = input()
s = set()
for i in data:
s.add(i)
print(len(s))
字符个数统计
http://www.nowcoder.com/practice/eb94f6a5b2ba49c6ac72d40b5ce95f50
set去重,input本身就会去除换行符,所以不需要过度处理\n, 问题不大
data = input()
s = set()
for i in data:
s.add(i)
print(len(s))
相关推荐