如果输入字符串是这样的:
"that`s not good thing ! you havn`t understand anything ?"
我想将其转换为:
" thats not good thing you havnt understand anything "
这是我想要的吗?
我尝试以下 reg.exp。
line = "that`s not good thing ! you havn`t understand anything ?"
text=re.sub("[^\w]"," ",line).split()
但它不能用于所需的输出。请提出相同的建议。