2301_77025568 2023-03-31 22:31 采纳率: 0%
浏览 25

用户输入一个字符串 s(长度<1000,以回车结束),将所有句子首字母大写、过滤多余空格后输出

如果像下面这样,需要加什么吗(不改变其他输出结果)
【样例输入】
the. chinese mainland reported 526 . confirmed cases and 894 asymptomatic . cases for Saturday.
【样例输出】
The. Chinese mainland reported 526 . Confirmed cases and 894 asymptomatic . Cases for saturday.

img

  • 写回答

2条回答 默认 最新

  • threenewbee 2023-03-31 22:58
    关注

    你的问题是什么?代码完整么?

    评论

报告相同问题?

问题事件

  • 创建了问题 3月31日