📌  相关文章
📜  ruby 将句子的第一个字符大写 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:23.108000             🧑  作者: Mango

代码示例1
a = "apples and oranges are two diffERent Fruits."
a.split.each{|i| i.capitalize!}.join(' ')

=> "Apples And Oranges Are Two Different Fruits."