$a = "b"; $a .= "c";
返回“bc”.我们如何在Ruby中做到这一点?
irb(main):001:0> a = "ezcezc" => "ezcezc" irb(main):002:0> a << "erer" => "ezcezcerer"
要么
irb(main):003:0> a += "epruneiruv" => "ezcezcererepruneiruv"