最佳答案
我有一根绳子:
"some text\nandsomemore"
我得把“ n”去掉,我试过了
"some text\nandsomemore".gsub('\n','')
但它不工作。我该怎么做呢? 谢谢阅读。