编写题解 1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:a = 0b = 0c = 0d = 0e = input()for i in e: if i.isalpha(): a+=1 elif i.i…… 题解列表 2022年05月08日 0 点赞 0 评论 202 浏览 评分:0.0
T1012 字符串分类统计 摘要:解题思路:注意事项:参考代码:s=input()a,b,c,d=0,0,0,0for i in s:if i.isalpha(): a=a+1 …… 题解列表 2025年05月02日 1 点赞 0 评论 277 浏览 评分:0.0
编写题解 1012: [编程入门]字符串分类统计python 摘要:解题思路:注意事项:参考代码:m=input()a,b,c,d=0,0,0,0if len(m)<200: for i in m: &nbs…… 题解列表 2025年01月06日 1 点赞 0 评论 614 浏览 评分:0.0
python用for解决 摘要:解题思路:注意事项:参考代码:str=input()a,b,c,d=0,0,0,0for i in str: if (i>='A' and i<='Z') or …… 题解列表 2024年03月15日 2 点赞 0 评论 258 浏览 评分:0.0
字符串分类统计(python正则表达式解) 摘要:解题思路:python正则表达式中re.findall方法全局匹配字符,匹配成功我们得到一个列表,通过len()方法统计列表长度来表示该类字符出现了多少次。注意事项:导入正则表达式re模块通过end=…… 题解列表 2024年02月28日 0 点赞 0 评论 237 浏览 评分:0.0
字符串分类统计的Python解法 摘要:解题思路:注意事项:参考代码:s=input()a,b,c,d=0,0,0,0for i in s: if i.isdigit(): a+=1 elif i.isalpha(…… 题解列表 2024年01月27日 1 点赞 0 评论 180 浏览 评分:0.0
编写题解 1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:str1=input()mu,number,kong,n=0,0,0,0list=["0","1","2","3","4","5","6","7","8","9"]for…… 题解列表 2022年06月14日 0 点赞 0 评论 408 浏览 评分:0.0
编写题解 1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:a=[] b=[] c=[] d=[] s=input('') for i in s: if (i >='a' and…… 题解列表 2022年05月05日 0 点赞 0 评论 228 浏览 评分:0.0
[编程入门]字符串分类统计-题解(Python代码) 摘要:```python a=input() #默认输入是str str_count=0 #定义变量 int_count=0 kongge=0 other=0 for i in a: …… 题解列表 2020年03月25日 0 点赞 0 评论 604 浏览 评分:0.0
Python题解字符串分类统计 摘要:解题思路:注意事项:参考代码:zm,sz,kg,qt=0,0,0,0s=input()for c in s: if c>='a' and c<='z' or c>…… 题解列表 2022年06月07日 0 点赞 0 评论 292 浏览 评分:6.0