str = input()
set1 = set(str)
count = 0
for i in set1:
if ord(i) in range(128):
count += 1
print(count)
注意细节,一个小小的错误都会使整个程序无法运行
set1 = set(str)
count = 0
for i in set1:
if ord(i) in range(128):
count += 1
print(count)
注意细节,一个小小的错误都会使整个程序无法运行
我已经通过这道题!
https://gw-c.nowcoder.com/api/sparta/jump/link?link=https%3A%2F%2Fwww.nowcoder.com%2FquestionTerminal%2Feb94f6a5b2ba49c6ac72d40b5ce95f50
全部评论
相关推荐
02-06 21:46
西安财经大学 算法工程师 点赞 评论 收藏
分享
查看11道真题和解析