📜  用另一个字符串替换字符串 ruby 代码示例

📅  最后修改于: 2022-03-11 15:04:48.251000             🧑  作者: Mango

代码示例1
myString = "Welcome to JavaScript!"

myString["JavaScript"]= "Ruby"

puts myString
=> "Welcome to Ruby!"