相关疑难解决方法(0)

对于文本文件的每一行,将分号后面的第一个字符设为大写

我有一个这样的文本文件

John Doe;john Doe is ...;he lives in ...
Mike Nelson;mike Nelson works for ...;he makes ...
Marcy William;marcy's mother is ...;marcy travels a lot... 
Run Code Online (Sandbox Code Playgroud)

我想将分号后面的每个字符都转换为大写,所以最终结果是

John Doe;John Doe is ...;He lives in ...
Mike Nelson;Mike Nelson works for ...;He makes ...
Marcy William;Marcy's mother is ...;Marcy travels a lot...
Run Code Online (Sandbox Code Playgroud)

保持其余的完好无损。

此文件包含带重音的字母并以 UTF-8 编码。

text-processing

2
推荐指数
3
解决办法
467
查看次数

标签 统计

text-processing ×1