会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
dfvn
博客园
首页
新随笔
联系
订阅
管理
2025年4月7日
第四章练习题
摘要: 4.2 input_str = input("请输入一行字符:") letters = 0 digits = 0 spaces = 0 others = 0 for char in input_str: if char.isalpha(): letters += 1 elif char.isdigi
阅读全文
posted @ 2025-04-07 20:07 cchb
阅读(13)
评论(0)
推荐(0)
公告