如何使用loop
将一个词替换为另一个词。例如,假设我有一个名为“changeWords
”的function
”,我想让这个函数将三个单词不能,不应该,不要到不能,不应该,不要。所以当输入函数时,“changeWords("I don't know how to do this")'
应该返回”I do not know how to do this".
澄清:
changeWords(“I can't eat") -> “I can not eat"
changeWords(“I don't like swimming.”) -> “I do not like swimming.”
changeWords(“I shouldn't do that.”) -> “I should not do that.”
我的尝试:
^{pr2}$
相关问题 更多 >
编程相关推荐