题解 | #字符个数统计#
字符个数统计
https://www.nowcoder.com/practice/eb94f6a5b2ba49c6ac72d40b5ce95f50
word = input()
l = set()
for i in word:
if i not in l:
l.add(i)
print(len(l))
判重采取集合的方式,进行长度计算
字符个数统计
https://www.nowcoder.com/practice/eb94f6a5b2ba49c6ac72d40b5ce95f50
word = input()
l = set()
for i in word:
if i not in l:
l.add(i)
print(len(l))
判重采取集合的方式,进行长度计算
相关推荐
沉淀小子:干啥都不丢人啊,生存是必须要的,销售很考验一个人综合素质能力的,好的销售人脉和资源可不比写字楼的白领差啊
查看24道真题和解析