所以我有一些這樣的句子:的Python:句子分裂產生一個空白
The window is over there. The lamp is on. The fire is burning.
當採用分體式(「」),然後用換行符加入它,我把它分解,就失去了「」
然後我試圖像正則表達式,但(?<=\.)\s
它的第二和第三字母的第一個字母之前產生空間:
The window is over there.
The lamp is on.
The fire is burning.
我不想額外的空間。我想:
The window is over there.
The lamp is on.
The fire is burning.
感謝
您的正則表達式解決方案適用於我 – Eric