解题思路:
注意事项:
参考代
# main n = input() n_da = 0 n_xiao = 0 n_number = 0 for i in n: if(i.isdigit()): n_da += 1 elif(ord(i) >= 97 and ord(i) <= 122): n_xiao += 1 elif(ord(i) >= 65 and ord(i) <= 90): n_number += 1 else: continue print(n_number) print(n_xiao) print(n_da)
码:
0.0分
0 人评分
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:512 |
C语言程序设计教程(第三版)课后习题4.9 (C语言代码)浏览:648 |
C语言程序设计教程(第三版)课后习题10.4 (C语言代码)浏览:943 |
简单的a+b (C语言代码)浏览:878 |
The 3n + 1 problem (C语言代码)浏览:603 |
蚂蚁感冒 (C语言代码)浏览:1408 |
C二级辅导-阶乘数列 (C语言代码)浏览:583 |
企业奖金发放 (C语言代码)浏览:2462 |
1052题解(链表操作)浏览:782 |
A+B for Input-Output Practice (IV) (C语言代码)浏览:489 |