题解 | #字符个数统计#
字符个数统计
http://www.nowcoder.com/practice/eb94f6a5b2ba49c6ac72d40b5ce95f50
a = input().strip()
b = []
for i in a:
if ord(i) >=0 and ord(i) <= 127:
b.append(i)
else:
pass
c = list((dict.fromkeys(b)))
print(len(c))
查看7道真题和解析
SHEIN希音公司福利 363人发布