python将字符串多个空格合并为一个 2022-04-26 本文已影响0人 jinjin1009 content='a b c' content = ' '.join(content.split()) 其中 content.split()=['a','b','c']