相关疑难解决方法(0)

删除字符串中多个空格的简单方法?

假设这是字符串:

The   fox jumped   over    the log.
Run Code Online (Sandbox Code Playgroud)

这将导致:

The fox jumped over the log.
Run Code Online (Sandbox Code Playgroud)

什么是最简单的1-2衬垫可以​​做到这一点?没有分裂并进入列表......

python regex string

338
推荐指数
14
解决办法
30万
查看次数

标签 统计

python ×1

regex ×1

string ×1