题解 | #字符个数统计#
字符个数统计
https://www.nowcoder.com/practice/eb94f6a5b2ba49c6ac72d40b5ce95f50
#1.将字符串转换为set,#set中只保留了仅出现一次的字符 #2.计算了set中字符的个数 print(len(set(input())))
字符个数统计
https://www.nowcoder.com/practice/eb94f6a5b2ba49c6ac72d40b5ce95f50
#1.将字符串转换为set,#set中只保留了仅出现一次的字符 #2.计算了set中字符的个数 print(len(set(input())))
相关推荐