2846: 统计数字字符个数 摘要:#include<stdio.h> #include<math.h> #include<string.h> # define N 255 int main() { char…… 题解列表 2023年03月05日 0 点赞 0 评论 340 浏览 评分:0.0
2025/8/11刷题记录 摘要:解题思路:输入有空格就不能用scanf注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ &nbs…… 题解列表 2025年08月11日 0 点赞 0 评论 170 浏览 评分:0.0
Python统计数字字符个数 摘要:解题思路:注意事项:参考代码:n=input()count=0for i in n: if i>='0' and i<='9': count+=1p…… 题解列表 2023年02月10日 0 点赞 0 评论 326 浏览 评分:0.0
喜欢简单的可以看一下 摘要:解题思路:注意事项:count一定要初始化为0,而且数字字符记得带单引号参考代码:#include<stdio.h>int main(){char str[255];int i,count=0;get…… 题解列表 2023年01月19日 0 点赞 0 评论 342 浏览 评分:0.0
统计数字字符个数(python) 摘要:解题思路:注意事项:参考代码:a=input()s=[]for i in a: if i in'1234567890': s.append(i)print(len(…… 题解列表 2023年06月09日 0 点赞 0 评论 282 浏览 评分:0.0
统计数字字符个数 摘要:解题思路:用ASCII码值实现注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>void countnumber(const cha…… 题解列表 2023年01月08日 0 点赞 0 评论 474 浏览 评分:0.0
统计数字字符个数 摘要:、解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i,n=0; char a[255]; …… 题解列表 2022年12月30日 0 点赞 0 评论 412 浏览 评分:0.0
优质题解,回归真神的初始途径 摘要:解题思路:注意事项:参考代码:chuan=input()j=0for fu in chuan: if fu.isdigit(): j+=1print(j)…… 题解列表 2024年07月25日 0 点赞 0 评论 743 浏览 评分:0.0
2846: 统计数字字符个数 摘要:解题思路:注意事项:参考代码:s = input() c = 0 for i in s: if i.isdigit(): c += 1 print(c)…… 题解列表 2024年08月01日 0 点赞 0 评论 1004 浏览 评分:0.0
python 知识点:字符统计 简单易懂 摘要:解题思路:学习python第一天注意事项: python的在线编译器用不了参考代码:# 字符串的统计 str.count('字符串') 输出为int类型的个数str=input()a0…… 题解列表 2023年07月11日 0 点赞 1 评论 437 浏览 评分:4.7