2014-02-07 33 views

回答

2

很多方法。我能想到的

一種方法是

"A1+".gsub(/[+-]/, "+" => "-positive", "-" => "-negative") 
1

你期待太多。 Ruby或Rails不是AI,它無法讀懂你的想法。手動做。

相關問題