摆脱句子中的输入空格

Hen*_*ten 0 python

我有一个看起来像这样的字符串:

<type 'str'>
Hi George,

Thanks for sending me your report.

Ill take a look at it and get back to you tomorrow.
Run Code Online (Sandbox Code Playgroud)

我想要做的是将其转换为一个字符串,如下所示:

Hi George, Thanks for sending me your report. Ill take a look at it and get back to you tomorrow.
Run Code Online (Sandbox Code Playgroud)

怎么想我怎么做?

aka*_*iya 5

用这个 :

>>> print(" ".join(input_str.split()))
'Hi George, Thanks for sending me your report. Ill take a look at it and get back to you tomorrow.'
Run Code Online (Sandbox Code Playgroud)