如果我有一个包含许多单词的字符串。如果字符串中的单词不以
示例输入:
我该如何在不使用
_
开头,我想要去掉闭合括号。示例输入:
this is an example to _remove) brackets under certain) conditions.
输出:
this is an example to _remove) brackets under certain conditions.
我该如何在不使用
re.sub
拆分单词的情况下完成这个任务?