python 删除字符串中连续多个空格并保留一个的方法

' '.join(line.split())
原文地址:https://www.cnblogs.com/lxz123/p/15167139.html