📜  删除多个空格python代码示例

📅  最后修改于: 2022-03-11 14:45:12.573000             🧑  作者: Mango

代码示例1
import re
re.sub(' +', ' ', 'The     quick brown    fox')
'The quick brown fox'