到目前为止我所拥有的是:local words = {} table.insert(words, word)-- splits msg by every blank space and drops it in words
我希望去掉msg中的第一个单词,并将其余的作为变量保存我想我可以做table.remove(words, 1)来去掉第一个单词
example = 'hello this #word1# a it #word2# thanks!'text = "hello this #word1# a it #word2# thanks!"我需要去掉#之间的两个单词(word1和word2),并将第一个字母替换为大写字母- .title()。我有一个代码:
text = 'hello this #word1# a it #