One way to do it is to replace characters that are not alphabets with space. import re newtext = re.sub(r'[^A-Za-z]+', ' ', oldtext).
確定! 回上一頁