默默无闻
2025-03-27 16:57:38
发布于:浙江
1阅读
0回复
0点赞
s = input()
letters = digits = others = 0
for char in s:
if char.isalpha():
letters += 1
elif char.isdigit():
digits += 1
else:
others += 1
print(f"英文字母数量: {letters}")
print(f"数字数量: {digits}")
print(f"其他字符数量: {others}")
这里空空如也
有帮助,赞一个