Replace multiple spaces with one space in Python(替换多个空格为一个空格) s=" a b c " " ".join(s.split()) awesome python!