题解 | #字符个数统计#
字符个数统计
https://www.nowcoder.com/practice/eb94f6a5b2ba49c6ac72d40b5ce95f50
def count_character(a): for i in a: if i in b: continue else: b.append(i) return len(b) a=input() b=[] print(count_character(a))
字符个数统计
https://www.nowcoder.com/practice/eb94f6a5b2ba49c6ac72d40b5ce95f50
def count_character(a): for i in a: if i in b: continue else: b.append(i) return len(b) a=input() b=[] print(count_character(a))
相关推荐