acgo题库
  • 首页
  • 题库
  • 学习
  • 竞赛
  • 讨论
  • 排行
  • 团队
  • 备赛专区

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
登录
注册
题目详情提交记录(0)
  • 大佬看过来

    我这样写哪儿错了? s = input().strip() letters = 0 digits = 0 others = 0 for i in s: if i == '?': break # 遇到问号停止统计 if i.isalpha(): # 判断是否为字母 letters += 1 elif i.isdigit(): # 判断是否为数字 digits += 1 else: others += 1 print("Letters="+letters) print("Digits="+digits) print("Others="+others)

    userId_undefined

    扶摇万里 (互关)

    倔强青铜分支·分支解题者循环·循环打卡人格式·格式排版员I/O·IO入门者字符串·魔法使
    25阅读
    4回复
    1点赞
  • 提示

    输入可能包含空格哦

    userId_undefined

    风虽

    秩序白银
    26阅读
    0回复
    1点赞
  • nb

    nb

    userId_undefined

    mzx

    18阅读
    0回复
    0点赞
暂无数据

提交答案之后,这里将显示提交结果~

首页