스탠자를 단락으로 변환하는 파이썬 스크립트를 만들려고합니다. 이런 종류의 뭔가 :스텐자를 파이썬에서 단락으로 변환
My mother’s maids, when they did sew and spin,
They sang sometimes a song of the field mouse,
That for because their livelihood was but so thin.
Would needs go seek her townish sister’s house.
Would needs She thought herself endured to much pain:
The stormy blasts her cave so sore did souse…
이 같은 단락 될 : 그들은 바느질 스핀했을 때,
어머니의 하녀는, 그들은 때때로 필드 마우스의 노래를 불렀 그 자신의 생활 이었기 때문에 대한 하지만 너무 얇은. 그녀의 고향 동생의 집을 찾아야 할 필요가있을 것입니다. 그녀는 자신이 많은 고통을 견뎌야한다고 생각 했었습니다. 그녀의 동굴이 너무 아팠습니다.
연속 된 개행을 하나의 공백으로 축소하려는 것 같습니다. ['re.sub'] (https://docs.python.org/3/library/re.html#re.sub) –