📜  在 python 代码示例中修剪多个空格

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

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